Skip to content

Commit ba46d49

Browse files
authored
Merge branch 'main' into main
2 parents 8e76b58 + 7a911f3 commit ba46d49

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

HISTORY.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
History
44
-------
55

6+
v0.26.3 (2025-01-06)
7+
....................
8+
9+
* Fix negative expires_ms and avoid worker freezing while using cron by @Matvey-Kuk in #479
10+
* Fix race condition on task retry by @RB387 in #487
11+
12+
613
v0.26.1 (2023-08-29)
714
....................
815

arq/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Version here is used for the package version via the `[tool.hatch.version]` section of `pyproject.toml`.
2-
VERSION = '0.26.1'
2+
VERSION = '0.26.3'

arq/worker.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,12 @@ async def run_cron(self, n: datetime, delay: float, num_windows: int = 2) -> Non
960960
job_id = f'{cron_job.name}:{to_unix_ms(cron_job.next_run)}' if cron_job.unique else None
961961
job_futures.add(
962962
self.pool.enqueue_job(
963-
cron_job.name, _job_id=job_id, _queue_name=self.queue_name, _defer_until=cron_job.next_run
963+
cron_job.name,
964+
_job_id=job_id,
965+
_queue_name=self.queue_name,
966+
_defer_until=(
967+
cron_job.next_run if cron_job.next_run > datetime.now(tz=self.timezone) else None
968+
),
964969
)
965970
)
966971
cron_job.calculate_next(cron_job.next_run)

0 commit comments

Comments
 (0)