Community threads: Is it possible to create an event-based Workflow?
Nov 27, 2023

Summary
This post explains how to build event-based workflows in Temporal by leveraging `wait_condition` and signals. It demonstrates how to use signals to advance workflow stages and how `wait_condition` can pause workflow execution until a specific condition is met. The example code, using the Python SDK, illustrates a workflow that executes a series of activities, waiting for stage advancements via signals between them. This pattern ensures that workflows can reliably handle external events and acknowledgments, even over extended periods and in the face of worker failures, due to Temporal's replay functionality.