You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pause your workflow executions until a notification is received, or emit events from your workflow to send progress updates to external clients.
231
+
All notifications are stored in Postgres, so they can be sent and received with exactly-once semantics.
232
+
Set durable timeouts when waiting for events, so you can wait for as long as you like (even days or weeks) through interruptions or restarts, then resume once a notification arrives or the timeout is reached.
233
+
234
+
For example, build a reliable billing workflow that durably waits for a notification from a payments service, processing it exactly-once:
235
+
236
+
```java
237
+
@workflow(name="billing")
238
+
publicvoid billingWorkflow() {
239
+
// Calculate the charge, then submit the bill to a payments service
0 commit comments