HangfireIO / HangfireIO/Hangfire

Recurring job executed on incorrect date

Open
#1,929 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
10.1k
Forks
1.8k
Avg merge
1h 19m
Merged PRs (30d)
1

Description

We have a job scheduled to be run on the 10th of every month, but I was looking at our Hangfire dashboard and noticed it had run this job at midnight yesterday (i.e. Thursday 19th August 00:00). This has caused several thousand records to be created within our database that shouldn't have been.

This is how the job appears within the "Recurring Jobs" section of the dashboard:

![image](https://user-images.githubusercontent.com/1588951/130058157-6a3f5a87-07a3-46be-a6f6-c31934120af9.png)

This is the page for the job that got executed:

![image](https://user-images.githubusercontent.com/1588951/130058364-117bd994-e3ed-4e4a-b3e0-3ea48a592983.png)

Is it a known issue that the job scheduler can kick off jobs at a completely different date than it's meant to?

Contributor guide

Open the contributing guide

Research direction

Start with the recurring job entry in the Hangfire dashboard and compare its configured monthly schedule with the execution history shown in the issue. No source files or tests are named; determine whether the unexpected August 19 execution can be reproduced and identify what scheduling or date configuration explains it.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.