File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 11import logging
22
3- VERSION = "6.2.0 "
3+ VERSION = "6.2.1 "
44__version__ = VERSION
55
66logger = logging .getLogger (__name__ )
Original file line number Diff line number Diff line change @@ -832,16 +832,18 @@ async def schedule_cron_jobs(
832832 logger .debug (f"enqueuing cron jobs in worker { self .id } " )
833833 async with self .redis .pipeline (transaction = False ) as pipe :
834834 lib = Streaq (pipe )
835- for task_id in ready :
836- tab , new_id = registry [task_id ], uuid4 ().hex
835+ for fn_name in ready :
836+ tab = registry [fn_name ]
837+ ts = self .next_run (tab )
838+ new_id = _deterministic_id (fn_name + str (ts ))
837839 lib .schedule_cron_job (
838840 self .cron_schedule_key ,
839841 self .queue_key + self .priorities [- 1 ],
840- self .cron_data_key + task_id ,
842+ self .cron_data_key + fn_name ,
841843 self .prefix + REDIS_TASK + new_id ,
842844 new_id ,
843- self . next_run ( tab ) ,
844- task_id ,
845+ ts ,
846+ fn_name ,
845847 )
846848
847849 async def finish_failed_task (
You can’t perform that action at this time.
0 commit comments