Closed cretz closed 7 months ago
The callback for WaitConditionAsync is run outside of the event loop, so the current task scheduler is not the workflow instance. This means any calls on the Workflow object within the callback will fail.
WaitConditionAsync
Workflow
Workflow event loop is in the following file (for future reference)
https://github.com/temporalio/sdk-dotnet/blob/ee378c17595bccf8a390ff82e4e1f514d4a6344f/src/Temporalio/Worker/WorkflowInstance.cs#L648
Describe the bug
The callback for
WaitConditionAsync
is run outside of the event loop, so the current task scheduler is not the workflow instance. This means any calls on theWorkflow
object within the callback will fail.