Open
Description
This code will example will create a cron job that starts at 02:00 AM, but after successful completion the job will be recreated again until it becomes 02:01.
from rq_scheduler import Scheduler
sc = Scheduler()
sc.cron(
"0 2 * * *",
do_something_very_fast,
use_local_timezone=True,
result_ttl=3600 * 23,
)
Suggestion:
Add an example of this behavior into the cron method or make repeat=0.
Quick fix suggestion:
from rq_scheduler import Scheduler
sc = Scheduler()
sc.cron(
"0 2 * * *",
do_something_very_fast,
use_local_timezone=True,
result_ttl=3600 * 23,
repeat=0,
)
Metadata
Metadata
Assignees
Labels
No labels