Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent deadlocks in scheduler shutdown (#268)
By splitting up the executor lock and jobstore lock, this allows jobs that are shutting down to query their state from the database (requiring `self._jobstore_lock`) without causing a deadlock. Since setting `self.state` above prevents new jobs from being added to the executors as they shut down, breaking up these locks won't allow new jobs to run while the scheduler is shutting down.
- Loading branch information