Community Threads: Is it possible to create an event-based Workflow?
In the Temporal community, a user asked if it is possible to create event-based Workflows and how Activities within a Workflow can wait for these events. The answer is yes; Temporal allows creating async Activities within Workflow Definitions using its event loop in Python. By setting up signal handlers and using the `wait_condition` function, it's possible to create an event-based flow where each Activity requires waiting on a specific event or condition before proceeding to the next Activity. This approach ensures that the Workflow can wait for weeks between events, recover from worker crashes, and continue executing Activities as needed.
Company
Temporal
Date published
Nov. 27, 2023
Author(s)
Eric O'Rear
Word count
635
Language
English
Hacker News points
None found.