-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reset signals on exiting SchedulerJob loop (#44370)
Under normal use (i.e. running `airflow scheduler`) this doesn't matter as the process is about to exit. However this can come up in running tests -- for instance if you try to run `pytest tests/jobs/test_scheduler_job.py tests/executors/` it will fail as the signal handler from running the scheduler is still installed in the main pytest process. Since the fix is easy and doesn't significantly complicate anything it is worth making the behaviour under pytest more "correct".
- Loading branch information
Showing
1 changed file
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters