Context Variables Return None (#412)
This changes the context variables (`DBOS.workflow_id`, etc.) to return None if called outside of their appropriate context instead of throwing an exception. This is more intuitive behavior than throwing an exception and allows easily checking if one is in an appropriate context (for example, to check if you are in a workflow, check `if DBOS.workflow_id is not None:`
P
Peter Kraft committed
c15d893641ed99ded85c38631c9c9002b37970eb
Parent: 7f7e154
Committed by GitHub <noreply@github.com>
on 7/22/2025, 3:56:07 PM