amitree / delayed_job_recurring

Extends delayed_job to support recurring jobs
MIT License
84 stars 33 forks source link

job running twice. #22

Closed RedNoo closed 5 years ago

RedNoo commented 6 years ago

Hello, I added the delayed_job_recurring gem and I created a simple ActiveJob. I am inserting record to the DB after my job run. When I check the table I am seeing 2 records. And I am seeing the following lines in my console.

[Worker(host:k pid:4962)] Job SimpleJob (id=9305) (queue=Default) RUNNING [Worker(host:k pid:4962)] Job SimpleJob (id=9305) (queue=Default) COMPLETED after 0.7371 [Worker(host:k pid:4962)] Job ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper (id=9306) (queue=Default) RUNNING [Worker(host:k pid:4962)] Job ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper (id=9306) (queue=Default) COMPLETED after 0.5055 [Worker(host:k pid:4962)] 2 jobs processed at 1.5728 j/s, 0 failed Why is my job running twice? How can I fix that?

Gokul595 commented 6 years ago

Please post more details of your job code and how you initiate the recurring job?

afn commented 5 years ago

Closing due to lack of activity. Feel free to reopen if this is still an issue.