Skip to content

Instantly share code, notes, and snippets.

@pentium10
Last active February 26, 2023 19:33
Show Gist options
  • Save pentium10/1f1ba143619396d005c9dc7450a96ddc to your computer and use it in GitHub Desktop.
Save pentium10/1f1ba143619396d005c9dc7450a96ddc to your computer and use it in GitHub Desktop.
main:
params: [event]
steps:
- trainingPipelineCheck:
switch:
- condition: ${not("google.cloud.aiplatform.ui.PipelineService.CreateTrainingPipeline" == event.data.protoPayload.methodName)}
next: end
# proceed further only when we have the CreateTrainingPipeline event
- run:
call: googleapis.workflowexecutions.v1.projects.locations.workflows.executions.run
args:
workflow_id: "vertexai_pipeline_launched_clone_bigquery_table"
argument:
trainingPipelineId: ${text.split(event.data.protoPayload.response.name,"/")[5]}
result: runResult
- final:
return: ${runResult}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment