HangfireIO / HangfireIO/Hangfire
Exception at 00:00 UTC when trying to search scheduledJobs
- Dominant language
- C#
- Stars
- 10.1k
- Forks
- 1.8k
- Avg merge
- 1h 19m
- Merged PRs (30d)
- 1
Description
I am getting exception on production exactly at 00:00UTC when some part of the code should check if there is a scheduled job and if not then create it, the exception that i get is:
> The given key was not present in the dictionary.
i think its this line of code:
[https://github.com/HangfireIO/Hangfire/blob/master/src/Hangfire.SqlServer/SqlServerMonitoringApi.cs#L103](url)
my trace is:
> at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Hangfire.SqlServer.SqlServerMonitoringApi.<>c.b__9_1(SqlJob sqlJob, Job job, Dictionary`2 stateData)
at Hangfire.SqlServer.SqlServerMonitoringApi.DeserializeJobs[TDto](ICollection`1 jobs, Func`4 selector)
at Hangfire.SqlServer.SqlServerMonitoringApi.GetJobs[TDto](DbConnection connection, Int32 from, Int32 count, String stateName, Func`4 selector)
at Hangfire.SqlServer.SqlServerMonitoringApi.<>c__DisplayClass9_0.b__0(DbConnection connection)
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](Func`2 func)
at Hangfire.SqlServer.SqlServerMonitoringApi.ScheduledJobs(Int32 from, Int32 count)
im not sure why exactly at 00:00UTC it dont found the enqueueAt or the ScheduledAt data.
Contributor guide
Assessment
This issue has not been assessed yet.