misa
misa

Reputation: 11

How to call cloud workflows(gcp) sequentially?

how to call cloud workflows sequentially? I don't want to start workflow when another (same) workflow is processing.

Upvotes: 1

Views: 1097

Answers (1)

Pentium10
Pentium10

Reputation: 207838

You have a couple of options:

  1. create a primary top level worklow that calls all the other workflows using the googleapis.workflowexecutions.v1.projects.locations.workflows.executions.create action as steps

literally this means you have 1 main workflow with many steps, each trigger one workflow after the other using the above call statement. Steps are executed sequentially.

  1. Leverage Firestore API to write a flag to a collection that controls whether a workflow is in progress, and if another workflow starts check the flag and stop.

Upvotes: 2

Related Questions