We have recurring jobs that are randomly failing:
Hangfire.Common.JobLoadException: Could not load the job. See inner exception for the details.
---> System.IO.FileNotFoundException: Could not resolve assembly 'Project.Client.Web'.
This is how it is being set up.
RecurringJob.AddOrUpdate<ProcessAchievementsJob>(ProcessAchievementsJob.JobId,
"ClientQueue", job => job.ProcessAchievementsAsync(default!), "0 15-23 * * *");
And this is the signature for the job:
[Queue("ClientQueue")]
public class ProcessAchievementsJob : IProcessAchievementsJob
This has caused a lot of issues. Also after it fails it doesn’t reschedule but then randomly runs later which caused a lot of headaches. On top of this we deleted the job in the dashboard and it too ran later and reappeared with no intervention from us.
So 2 things why does it not respect the queue selected and why does it then run much later at a random time?