dbos-inc / dbos-transact-py

Ultra-Lightweight Durable Execution in Python
https://docs.dbos.dev
MIT License
244 stars 7 forks source link

Implement setEvent and getEvent #35

Closed qianl15 closed 2 months ago

qianl15 commented 2 months ago

Mirror the logic in Transact-TS.

setEvent can only be called from within a workflow, getEvent can be called either outside of a workflow or within a workflow (not in Transaction or Communicator). If the getEvent is called in a workflow, we guarantee OAOO and durable timeout.