Hangfire: Recurring job '?' can not be scheduled due to job load exception.

Created on 15 Jun 2016  路  9Comments  路  Source: HangfireIO/Hangfire

Talking about Scalability/Distrubted Systems I think each server might see only its queues.
In my production envrionment I'm running two instances in two servers. Each server actually runs over different queues as below
image

Server "A" has only libraries needed there and in the other server ("B") only the libraries needed also. When server "B" tries to Schedule a job it throws JobLoadException because there's no library into its binary folder. What I suggest is to change few classes to restrict RecurringJobScheduler class to watch only the right queues.

The queue is already in the context and could be used to filter recurring-jobs as well.
image

question

Most helpful comment

Here is a solution.

I would call it a workaround, not a solution.
The bug needs to be fixed in Hangfire and not ignored for another 4 years.

But thanks for sharing.

Yes, it is a workaround. This problem has been reported by many people for many years now. Nothing has happened yet. I am losing hope.

All 9 comments

Having the exact same issue.
To me this is clearly a bug, can anyone confirm?

Also encountered this. Although it is merely a warning, it is unnecessarily cluttering the logs.

Also, can the Queue attribute be used for recurring jobs as well?

There is solution for this problem?
I am facing the same problem.

+1 for this

+111

Here is a solution.

Here is a solution.

I would call it a workaround, not a solution.
The bug needs to be fixed in Hangfire and not ignored for another 4 years.

But thanks for sharing.

Here is a solution.

I would call it a workaround, not a solution.
The bug needs to be fixed in Hangfire and not ignored for another 4 years.

But thanks for sharing.

Yes, it is a workaround. This problem has been reported by many people for many years now. Nothing has happened yet. I am losing hope.

any update on this (over 4 years now)!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thurfir picture thurfir  路  4Comments

jeffsugden picture jeffsugden  路  4Comments

cottsak picture cottsak  路  3Comments

pwueje picture pwueje  路  4Comments

plmwong picture plmwong  路  3Comments