-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to cc2, add sensors to long-running tasks
- Loading branch information
Showing
5 changed files
with
109 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
gsutil cp orca_data_pipeline.py gs://us-east1-production2023-cc1-01d75926-bucket/dags/ | ||
gsutil cp orca_data_pipeline.py gs://us-east1-production-cc2-202-b42a7a54-bucket/dags/ | ||
gsutil -m rm gs://airflow-data-exchange/orca/schemas/* | ||
gsutil -m cp schemas/* gs://airflow-data-exchange/orca/schemas/ | ||
gsutil -m rm gs://us-east1-production2023-cc1-01d75926-bucket/dags/schemas/orca/* | ||
gsutil -m cp schemas/* gs://us-east1-production2023-cc1-01d75926-bucket/dags/schemas/orca/ | ||
gsutil -m rm gs://us-east1-production-cc2-202-b42a7a54-bucket/dags/schemas/orca/* | ||
gsutil -m cp schemas/* gs://us-east1-production-cc2-202-b42a7a54-bucket/dags/schemas/orca/ | ||
gsutil rm -r gs://airflow-data-exchange/orca/code | ||
gsutil -m cp -r scripts gs://airflow-data-exchange/orca/code/ | ||
gsutil -m cp -r input_data gs://airflow-data-exchange/orca/code/ | ||
gsutil cp requirements.txt gs://airflow-data-exchange/orca/code/ | ||
gsutil cp sequences/* gs://us-east1-production2023-cc1-01d75926-bucket/dags/sequences/orca/ | ||
gsutil -m rm gs://us-east1-production2023-cc1-01d75926-bucket/dags/sql/orca/* | ||
gsutil -m cp sql/* gs://us-east1-production2023-cc1-01d75926-bucket/dags/sql/orca/ | ||
gsutil cp sequences/* gs://us-east1-production-cc2-202-b42a7a54-bucket/dags/sequences/orca/ | ||
gsutil -m rm gs://us-east1-production-cc2-202-b42a7a54-bucket/dags/sql/orca/* | ||
gsutil -m cp sql/* gs://us-east1-production-cc2-202-b42a7a54-bucket/dags/sql/orca/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
working_dir=$1 | ||
data_bucket=$2 | ||
production_dataset=$3 | ||
done_file="get_full_metadata" | ||
|
||
cd $working_dir | ||
gsutil rm "gs://${data_bucket}/${production_dataset}/done_files/${done_file}" | ||
PYTHONPATH='.' python3 scripts/backfill_top_level_repo_data.py && touch $done_file | ||
gsutil cp $done_file "gs://${data_bucket}/${production_dataset}/done_files/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
working_dir=$1 | ||
data_bucket=$2 | ||
production_dataset=$3 | ||
done_file="retrieve_repos" | ||
|
||
cd $working_dir | ||
gsutil rm "gs://${data_bucket}/${production_dataset}/done_files/${done_file}" | ||
PYTHONPATH='.' python3 scripts/retrieve_repos.py --query_bq && touch $done_file | ||
gsutil cp $done_file "gs://${data_bucket}/${production_dataset}/done_files/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
working_dir=$1 | ||
data_bucket=$2 | ||
production_dataset=$3 | ||
tmp_dir=$4 | ||
done_file="scrape_additional_metadata" | ||
|
||
cd $working_dir | ||
gsutil rm "gs://${data_bucket}/${production_dataset}/done_files/${done_file}" | ||
PYTHONPATH='.' python3 scripts/retrieve_repo_metadata.py curr_repos_filled.jsonl curr_repos_final.jsonl | ||
gsutil cp curr_repos_final.jsonl "gs://${data_bucket}/${tmp_dir}" && touch $done_file | ||
gsutil cp $done_file "gs://${data_bucket}/${production_dataset}/done_files/" |