-
Notifications
You must be signed in to change notification settings - Fork 13
infra: propagate custom timeouts to Cloud Workflows preprocessing and postprocessing steps #172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -386,7 +386,10 @@ run_postprocessing_job: | |
| - "--import_list" | ||
| - '$${json.encode_to_string(import_list)}' | ||
| - "--no-dry_run" | ||
| connector_params: | ||
| timeout: ${postprocessing_job_timeout} | ||
| result: run_res | ||
|
|
||
| - call_poll_postprocessing: | ||
| call: poll_cloud_run_job_execution | ||
| args: | ||
|
|
@@ -520,8 +523,12 @@ launch_and_poll_preprocessing_job: | |
| - name: 'DATA_RUN_MODE' | ||
| value: 'dcpbridge' | ||
| args: '$${container_args}' | ||
| connector_params: | ||
| timeout: ${preprocessing_job_timeout} | ||
| result: run_res | ||
|
|
||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: remove extra lines |
||
|
|
||
| - assign_execution_name: | ||
| assign: | ||
| - execution_name: '$${run_res.metadata.name}' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -224,10 +224,13 @@ module "ingestion_workflow" { | |
| dataflow_template_gcs_path = var.ingestion_config.dataflow_template_gcs_path | ||
| preprocessing_job_name = var.ingestion_config.enable_ingestion ? module.ingestion_preprocessing_job[0].job_name : "" | ||
| postprocessing_job_name = var.ingestion_config.enable_ingestion ? module.ingestion_postprocessing_job[0].job_name : "" | ||
| preprocessing_job_timeout = tonumber(replace(var.ingestion_config.preprocessing_job_timeout, "s", "")) | ||
| postprocessing_job_timeout = tonumber(replace(var.ingestion_config.postprocessing_job_timeout, "s", "")) | ||
|
Comment on lines
+227
to
+228
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If Using References
|
||
|
|
||
| depends_on = [module.ingestion_helper_service] | ||
| } | ||
|
|
||
|
|
||
| module "redis" { | ||
| source = "../redis" | ||
| count = var.redis_config.enable ? 1 : 0 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small nit, I dont think you're propagating these to the actual pre/post processing jobs as the timeout, it's just the polling connection.
You also can pass in these timeouts in the cloud run job containers running these.
Maybe passing it in both the cloud run job + the polling connector is the right approach? Can you update the worfklow.yaml connector params on the preprocessing polling too? I hardcoded that value (3993c71)