Closed ghost closed 2 years ago
Not sure why it does not work, but just to give some hints to start the investigation:
BackgroundJob.Enqueue(() => Console.WriteLine("export!"));
in the job. Try writing to the console directly. public void AddToQueue()
static. This removes the need to deserialize public class Export
and eliminates the possible class deserialization error.RecurringJob.AddOrUpdate
and public void AddToQueue()
have specified the queue attribute. Not sure if this would cause any problem, but worthing removing the duplicateThanks! Stupid of me not realizing I had the BackgroundJob.Enqueue in the job as well.
Should this not work? I'm not seeing anything on the console. Same issue with/without the MAMQ extension. Ultimate goal is to implement multiple servers each processing a specific queue using HangFire and MS SQL. Each queue can have scheduled jobs and non-scheduled jobs.