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
- Removed simplejson dependency
- Added OrchestrationFailedError class to client module
- Fixed race condition with WhenAnyTask
- Support for timedelta in create_timer
- Improved task error messages
- Support for custom object roundtripping
You can find the full sample [here](./examples/fanout_fanin.py).
73
73
74
+
### Human interaction and durable timers
75
+
76
+
An orchestration can wait for a user-defined event, such as a human approval event, before proceding to the next step. In addition, the orchestration can create a timer with an arbitrary duration that triggers some alternate action if the external event hasn't been received:
returnf"Approved by '{approval_details.approver}'"
99
+
```
100
+
101
+
As an aside, you'll also notice that the example orchestration above works with custom business objects. Support for custom business objects includes support for custom classes, custom data classes, and named tuples. Serialization and deserialization of these objects is handled automatically by the SDK.
102
+
103
+
You can find the full sample [here](./examples/human_interaction.py).
0 commit comments