diff options
author | Alex Grönholm <alex.gronholm@nextday.fi> | 2022-04-18 18:05:54 +0300 |
---|---|---|
committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2022-04-18 18:08:36 +0300 |
commit | 181764e97a1e6ae677525be3a402215ae2d8a8d3 (patch) | |
tree | f6fe69bd882560c361848a2ecea13e266265e483 /src/apscheduler/schedulers | |
parent | 81fe2216f04ecceef64dc3d1d542661757b9f6e2 (diff) | |
download | apscheduler-181764e97a1e6ae677525be3a402215ae2d8a8d3.tar.gz |
Fixed wrong indentation in async scheduler
The line that releases schedules after processing was indented wrong, releasing the schedules too early.
Diffstat (limited to 'src/apscheduler/schedulers')
-rw-r--r-- | src/apscheduler/schedulers/async_.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apscheduler/schedulers/async_.py b/src/apscheduler/schedulers/async_.py index 5552e60..2f6c418 100644 --- a/src/apscheduler/schedulers/async_.py +++ b/src/apscheduler/schedulers/async_.py @@ -299,8 +299,8 @@ class AsyncScheduler: start_deadline=schedule.next_deadline, tags=schedule.tags) await self.data_store.add_job(job) - # Update the schedules (and release the scheduler's claim on them) - await self.data_store.release_schedules(self.identity, schedules) + # Update the schedules (and release the scheduler's claim on them) + await self.data_store.release_schedules(self.identity, schedules) # If we received fewer schedules than the maximum amount, sleep until the next # schedule is due or the scheduler is explicitly woken up |