sdk-python icon indicating copy to clipboard operation
sdk-python copied to clipboard

Move _set_running_loop up the stack

Open dandavison opened this issue 6 months ago • 1 comments

This is a draft PR, investigating where we can / should set/unset the running loop.

Currently it's set/unset on entry/exit of _run_once(). Is the purpose of that to prevent any execution of workflow coroutines at any other time during activate()?

If so: CI is green when we do the setting/unsetting at the top level in activate(): it would be great to have a failing test demonstrating the necessity of confining the execution to _run_once().

dandavison avatar Aug 01 '24 14:08 dandavison