-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first attempt to point dev HCA dagster @ prod TDR (we are a client)
- Loading branch information
Showing
1 changed file
with
6 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
""" | ||
Pipelines here are intended to be run in the DEV HCA GCP project | ||
They, however, run against the production data repo | ||
""" | ||
|
||
from dagster import PipelineDefinition, in_process_executor, repository | ||
|
@@ -61,7 +62,7 @@ def load_hca_job() -> PipelineDefinition: | |
resource_defs={ | ||
"beam_runner": preconfigure_resource_for_mode(k8s_dataflow_beam_runner, "dev"), | ||
"bigquery_client": bigquery_client, | ||
"data_repo_client": preconfigure_resource_for_mode(jade_data_repo_client, "dev"), | ||
"data_repo_client": preconfigure_resource_for_mode(jade_data_repo_client, "prod"), | ||
"gcs": google_storage_client, | ||
"io_manager": preconfigure_resource_for_mode(gcs_pickle_io_manager, "dev"), | ||
"load_tag": load_tag, | ||
|
@@ -83,7 +84,7 @@ def project_load_hca_job() -> PipelineDefinition: | |
"bigquery_client": bigquery_client, | ||
"bigquery_service": bigquery_service, | ||
"dagit_config": preconfigure_resource_for_mode(dagit_config, "dev"), | ||
"data_repo_client": preconfigure_resource_for_mode(jade_data_repo_client, "dev"), | ||
"data_repo_client": preconfigure_resource_for_mode(jade_data_repo_client, "prod"), | ||
"data_repo_service": data_repo_service, | ||
"gcs": google_storage_client, | ||
"io_manager": preconfigure_resource_for_mode(gcs_pickle_io_manager, "dev"), | ||
|
@@ -103,7 +104,7 @@ def per_project_load_hca() -> PipelineDefinition: | |
resource_defs={ | ||
"beam_runner": preconfigure_resource_for_mode(k8s_dataflow_beam_runner, "dev"), | ||
"bigquery_client": bigquery_client, | ||
"data_repo_client": preconfigure_resource_for_mode(jade_data_repo_client, "dev"), | ||
"data_repo_client": preconfigure_resource_for_mode(jade_data_repo_client, "prod"), | ||
"gcs": google_storage_client, | ||
"io_manager": preconfigure_resource_for_mode(gcs_pickle_io_manager, "dev"), | ||
"load_tag": load_tag, | ||
|
@@ -123,8 +124,8 @@ def per_project_load_hca() -> PipelineDefinition: | |
@repository | ||
def all_jobs() -> list[PipelineDefinition]: | ||
jobs = [ | ||
make_snapshot_public_job("dev", "dev"), | ||
cut_project_snapshot_job("dev", "dev", "[email protected]"), | ||
make_snapshot_public_job("dev", "prod"), | ||
cut_project_snapshot_job("dev", "prod", "[email protected]"), | ||
legacy_cut_snapshot_job("dev", "[email protected]"), | ||
per_project_load_hca(), | ||
validate_ingress_job() | ||
|