Skip to content

Commit

Permalink
Fix: Migrate Deepmind Alphafold Dags to new environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
nlarge-google committed Nov 12, 2024
1 parent 78138fe commit a93b330
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
6 changes: 3 additions & 3 deletions datasets/deepmind/pipelines/alphafold/alphafold_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@
create_and_run_sts_jobs_using_manifests = kubernetes_pod.KubernetesPodOperator(
task_id="create_and_run_sts_jobs_using_manifests",
name="create_and_run_sts_jobs_using_manifests",
namespace="composer",
service_account_name="datasets",
namespace="composer-user-workloads",
service_account_name="default",
config_file="/home/airflow/composer_kube_config",
image_pull_policy="Always",
image="{{ var.json.deepmind.alphafold.sts_jobs_generator }}",
env_vars={
Expand All @@ -131,7 +132,6 @@
"DESTINATION_BUCKET": "{{ var.json.deepmind.alphafold.destination_bucket }}",
"GCP_PROJECT": "{{ var.value.gcp_project }}",
},
resources={"request_memory": "128M", "request_cpu": "200m"},
)

# Copy manifests to public bucket
Expand Down
8 changes: 3 additions & 5 deletions datasets/deepmind/pipelines/alphafold/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ dag:
args:
task_id: "create_and_run_sts_jobs_using_manifests"
name: "create_and_run_sts_jobs_using_manifests"
namespace: "composer"
service_account_name: "datasets"
namespace: "composer-user-workloads"
service_account_name: "default"
config_file: "/home/airflow/composer_kube_config"
image_pull_policy: "Always"
image: "{{ var.json.deepmind.alphafold.sts_jobs_generator }}"
env_vars:
Expand All @@ -148,9 +149,6 @@ dag:
SOURCE_BUCKET: "{{ var.json.deepmind.alphafold.source_bucket }}"
DESTINATION_BUCKET: "{{ var.json.deepmind.alphafold.destination_bucket }}"
GCP_PROJECT: "{{ var.value.gcp_project }}"
resources:
request_memory: "128M"
request_cpu: "200m"

- operator: "CloudDataTransferServiceGCSToGCSOperator"
description: "Copy manifests to public bucket"
Expand Down
6 changes: 3 additions & 3 deletions datasets/deepmind/pipelines/alphafold_v4/alphafold_v4_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@
create_and_run_sts_jobs_using_manifests = kubernetes_pod.KubernetesPodOperator(
task_id="create_and_run_sts_jobs_using_manifests",
name="create_and_run_sts_jobs_using_manifests",
namespace="composer",
service_account_name="datasets",
namespace="composer-user-workloads",
service_account_name="default",
config_file="/home/airflow/composer_kube_config",
image_pull_policy="Always",
image="{{ var.json.deepmind.alphafold.sts_jobs_generator }}",
env_vars={
Expand All @@ -127,7 +128,6 @@
"DESTINATION_BUCKET": "{{ var.json.deepmind.alphafold.destination_bucket_v4 }}",
"GCP_PROJECT": "{{ var.value.gcp_project }}",
},
resources={"request_memory": "128M", "request_cpu": "200m"},
)

# Copy manifests to public bucket
Expand Down
8 changes: 3 additions & 5 deletions datasets/deepmind/pipelines/alphafold_v4/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ dag:
args:
task_id: "create_and_run_sts_jobs_using_manifests"
name: "create_and_run_sts_jobs_using_manifests"
namespace: "composer"
service_account_name: "datasets"
namespace: "composer-user-workloads"
service_account_name: "default"
config_file: "/home/airflow/composer_kube_config"
image_pull_policy: "Always"
image: "{{ var.json.deepmind.alphafold.sts_jobs_generator }}"
env_vars:
Expand All @@ -147,9 +148,6 @@ dag:
SOURCE_BUCKET: "{{ var.json.deepmind.alphafold.source_bucket }}"
DESTINATION_BUCKET: "{{ var.json.deepmind.alphafold.destination_bucket_v4 }}"
GCP_PROJECT: "{{ var.value.gcp_project }}"
resources:
request_memory: "128M"
request_cpu: "200m"

- operator: "CloudDataTransferServiceGCSToGCSOperator"
description: "Copy manifests to public bucket"
Expand Down

0 comments on commit a93b330

Please sign in to comment.