Hi everyone,
Hi would like to create a GCP Workflow pipeline with :
- step1 : CloudRun Job number 1
- Return error message of step1
- If “Return error message of step1” is OK then
- step2 : CloudRun Job number 2
- Return error message of step2
- If “Return error message of step2” is OK then my GCP Workflow pipeline returns OK
Currently, my “CloudRun Job number 2” does not wait the “Return error message of step1”.
- What is the technical solution to do this :
- Callback ?
- Polling ?
- How can I implement this ?
My code :
main:
steps:
- google-asset-inventory:
call: http.post
args:
url: https://europe-west1-run.googleapis.com/apis/run.googleapis.com/v1/namespaces/paj-report-dev-prj-resti/jobs/google-asset-inventory:run
timeout: 900.0
auth:
type: OAuth2
result: statusmessage1
- returnOutput1:
return: ${statusmessage1}
- dbt-bigquery-monitoring:
call: http.post
args:
url: https://europe-west1-run.googleapis.com/apis/run.googleapis.com/v1/namespaces/paj-report-dev-prj-resti/jobs/dbt-bigquery-monitoring:run
timeout: 900.0
auth:
type: OAuth2
result: statusmessage
- returnOutput2:
return: ${statusmessage2}