and I have two processes, an rqworker my_queue and rqscheduler. When I schedule the jobs they execute and
However, every time I run rqscheduler all the already done jobs are run, regardless of their date or whether they have been executed, as the rqworker shows:
Job OK (28be8399-5038-4a37-9d80-90c8fd40781f)
However, every time I run the scheduler it runs all old jobs, regardless of whether they have been run before.
(env) my_computer$ rqscheduler -v
10:51:50 Registering birth
10:51:50 Entering run loop
10:51:50 Checking for scheduled jobs
10:51:50 Pushing 493bbea3-c653-471d-b6ba-73c3f96287a9 to refill
10:51:50 Pushing 503075f5-658d-4e88-830e-711ed4477400 to refill
10:51:50 Pushing 28be8399-5038-4a37-9d80-90c8fd40781f to refill
10:51:50 Sleeping 60.00 seconds
[CTRL-C]
10:51:53 Shutting down RQ scheduler...
10:51:53 Registering death
10:51:53 Registering death
(env) my_computer$ rqscheduler -v
10:51:54 Registering birth
10:51:54 Entering run loop
10:51:54 Checking for scheduled jobs
10:51:54 Pushing 493bbea3-c653-471d-b6ba-73c3f96287a9 to refill
10:51:54 Pushing 503075f5-658d-4e88-830e-711ed4477400 to refill
10:51:54 Pushing 28be8399-5038-4a37-9d80-90c8fd40781f to refill
10:51:54 Sleeping 60.00 seconds
Is this expected behavior? How do I do to have the scheduled jobs run only once?
I have a job created with
enqueue_at
(using Django and django-rq)and I have two processes, an
rqworker my_queue
andrqscheduler
. When I schedule the jobs they execute andHowever, every time I run
rqscheduler
all the already done jobs are run, regardless of their date or whether they have been executed, as therqworker
shows:However, every time I run the scheduler it runs all old jobs, regardless of whether they have been run before.
Is this expected behavior? How do I do to have the scheduled jobs run only once?