Community Threads: Is it possible to create an event-based Workflow?
Blog post from Temporal
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.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Serverless | 3 | 1,008 | 161 | 77 | +55% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.