Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Matvey-Kuk committed Sep 11, 2024
1 parent 8d03584 commit fd1b576
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arq/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,8 +751,12 @@ async def run_cron(self, n: datetime, delay: float, num_windows: int = 2) -> Non
job_id = f'{cron_job.name}:{to_unix_ms(cron_job.next_run)}' if cron_job.unique else None
job_futures.add(
self.pool.enqueue_job(
cron_job.name, _job_id=job_id, _queue_name=self.queue_name,
_defer_until=(cron_job.next_run if cron_job.next_run > datetime.now(tz=self.timezone) else None),
cron_job.name,
_job_id=job_id,
_queue_name=self.queue_name,
_defer_until=(
cron_job.next_run if cron_job.next_run > datetime.now(tz=self.timezone) else None
),
)
)
cron_job.calculate_next(cron_job.next_run)
Expand Down

0 comments on commit fd1b576

Please sign in to comment.