Skip to content

Commit

Permalink
Merge pull request #3 from corruptmane/master
Browse files Browse the repository at this point in the history
AsyncIOScheduler shutdown and wakeup fix
  • Loading branch information
GLEF1X authored Nov 7, 2022
2 parents 2359601 + 90999f6 commit d065fd9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apscheduler_di/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,9 @@ def save_ssl_context(obj):
super().__init__()

def wakeup(self) -> None:
if isinstance(self._scheduler, AsyncIOScheduler):
return run_in_event_loop(self._scheduler.wakeup)()
self._scheduler.wakeup()

def shutdown(self, wait: bool = True) -> None:
if isinstance(self._scheduler, AsyncIOScheduler):
return run_in_event_loop(self._scheduler.shutdown)()
self._scheduler.shutdown(wait=wait)

def add_job(
Expand Down

0 comments on commit d065fd9

Please sign in to comment.