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
We should add a dependency on ctrlc so that the worker can be told to cleanly exit when run_to_completion is called. The implementation will likely be fairly straightforward, essentially just storing STATUS_TERMINATING and letting the heartbeat thread do the cleanup (including failing the currently execution job). This may require some minor changes to make the heartbeat thread recognize that this is indeed a forced exit.
We may also want to allow the user to opt-in to signal handling for run, although that's less clear (we might instead want to return some kind of handle that the caller can use to signal to exit or wait for termination).
The text was updated successfully, but these errors were encountered:
We should add a dependency on
ctrlc
so that the worker can be told to cleanly exit whenrun_to_completion
is called. The implementation will likely be fairly straightforward, essentially just storingSTATUS_TERMINATING
and letting the heartbeat thread do the cleanup (including failing the currently execution job). This may require some minor changes to make the heartbeat thread recognize that this is indeed a forced exit.We may also want to allow the user to opt-in to signal handling for
run
, although that's less clear (we might instead want to return some kind of handle that the caller can use to signal to exit or wait for termination).The text was updated successfully, but these errors were encountered: