Skip to main content

Wait for Step completion

Let callers wait for a Step while background work continues.

Problem and approach

This Flow serves as a model to simplify the process of notifying the client/caller that an operation has been successfully completed, while another background process is started. The Step(s) used for the waitForCompletionStep feature or the waitForCompletionSteps (with "s") feature (for multiple Steps that can be waited for) must be configured in the FlowOptions when a Flow is started.

Code examples

Full runnable samples live under examples/{go,java,python,typescript} (HTTP prefix /design-pattern/... where applicable).

# See examples/python/dex_examples/patterns/workflow/waitforstatecompletion/