Sidekiq periodic job firing twice

61 views
Skip to first unread message

Vikram Anand

unread,
Mar 28, 2022, 5:26:37 AM3/28/22
to Sidekiq
We have a simple Sidekiq periodic job, which is suppose to run between 21-31 every month. It is firing twice, even though UI shows it is enqueued just once.

The cron is - 0 23 21-31 * *

Please see screenshots showing two JIDs in log while only one is showed enqueued in Sidekiq UI.

What could be the possible reason? The worker is not declared twice.

Screenshot 2022-03-28 at 2.38.32 PM.png
Screenshot 2022-03-28 at 2.38.14 PM.png

Mike Perham

unread,
Mar 28, 2022, 10:39:46 AM3/28/22
to sid...@googlegroups.com
I have no idea. The two job JIDs listed in your logs don't match the JID in the Web UI, so that's even more confusing.

--
You received this message because you are subscribed to the Google Groups "Sidekiq" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sidekiq+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sidekiq/dfdfa095-830d-40ba-af02-99482eb4996an%40googlegroups.com.


--
Mike Perham – CEO, Contributed Systems
Smart, effective open source infrastructure for your apps.

Vikram Anand

unread,
Mar 28, 2022, 11:31:12 AM3/28/22
to Sidekiq
Thanks for the response Mike. Actually the first JID is there in WebUI, sorry I provided the log data from the staging environment, correct screenshot below. Any suggestion if there is a way to debug this issue? 

Screenshot 2022-03-28 at 8.55.48 PM.png


Mike Perham

unread,
Mar 28, 2022, 11:38:32 AM3/28/22
to sid...@googlegroups.com
Go through the leader logs and determine where and when that cf7 job was created. It was executed 15 seconds after 59d so I don't know that it's a duplicate. Is this happening every time? Is it predictable? What do the logs of the leader process show?

Reply all
Reply to author
Forward
0 new messages