Different RecurringJobs executed at the same time creating duplicates


I’m trying to execute a process to update my database, but the problem is that I set different RecurringJobs for it at different hours.

Today when I checked hangfire status, since yesterday that I instanced hangfire, I found the job should execute yesterday and the one task for today, both executed 30 minutes ago at the same time, and this has created duplicates in the database.

Can you help me with this?

Hi, @jmmartinc!

Recently I commented on the similar issue.

My suggestion is your application slept after some time. Read Making ASP.NET application always running to prevent it.

When your application woke up RecurringJobScheduler discovered that existing recurring job hadn’t been triggered for a long time. So StartUpdate and EndUpdate jobs were triggered immediately.