You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say you scheduler.schedule a job; the interval values on the job or the ./manage.py rqscheduler -i x don't matter.
The time the job gets executed gets pushed back every now and then and over long periods of time, an 18:40:00 would gradually become 20:30:00 and out of nowhere, it becomes 18:40:00, and the cycle repeats.
dependencies:
./manage.py rqscheduler -i 5 -v 3 # both interval and verbosity has no effect at all
./manage.py rqworker default
let's say we start at 18:14:30 and we configure the report_config.cut_off_time to run at 18:15:00. it will run at the said time and rescheduled for 18:15:10 based on the code and so on and so forth...
after an hour I see 3 seconds delay:
19:14:43 Entering run loop
and soon after, 1 more second:
19:22:44 Entering run loop
and this keeps happening.
In production we use -i 60 and the job's interval is 86400. why does the task gets executed at 20:30:00 even though the scheduler runs every minute? does it really lose the sense of what time it is? or are we creating black holes somewhere on earth and time gets distorted? 😟
p.s. I wanted to try cron with crontab, but apparently, you have not released that yet and there is no proper tag on git for 0.11.0
The text was updated successfully, but these errors were encountered:
NB. I'm seeing the same. Just trying to work it out as I am seeing a consistent 3 second skew in my timing, but it looks like execution time of the task plays a role here, e.g. if it takes longer than the interval, the time starts to drift.
Let's say you
scheduler.schedule
a job; the interval values on the job or the./manage.py rqscheduler -i x
don't matter.The time the job gets executed gets pushed back every now and then and over long periods of time, an 18:40:00 would gradually become 20:30:00 and out of nowhere, it becomes 18:40:00, and the cycle repeats.
dependencies:
as a dev dep: (not available on CentOS)
we have the problem with older versions as well.
Example code:
and run these as well:
./manage.py rqscheduler -i 5 -v 3 # both interval and verbosity has no effect at all ./manage.py rqworker default
let's say we start at 18:14:30 and we configure the
report_config.cut_off_time
to run at 18:15:00. it will run at the said time and rescheduled for 18:15:10 based on the code and so on and so forth...after an hour I see 3 seconds delay:
and soon after, 1 more second:
and this keeps happening.
In production we use
-i 60
and the job'sinterval
is86400
. why does the task gets executed at 20:30:00 even though the scheduler runs every minute? does it really lose the sense of what time it is? or are we creating black holes somewhere on earth and time gets distorted? 😟p.s. I wanted to try cron with crontab, but apparently, you have not released that yet and there is no proper tag on git for
0.11.0
The text was updated successfully, but these errors were encountered: