Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cancel correctly tasks from sync context in Scheduler
When stopping the executing from ee, which runs in another thread, we need to use the correct loop when cancelling the job tasks. Further, we just signal to cancel therefore we don't need to await for the tasks to finish. This is handled in the Scheduler.execute - asyncio.gather.
- Loading branch information