Hangfire icon indicating copy to clipboard operation
Hangfire copied to clipboard

Dynamic Recurring Job (AddOrUpdateDynamic) with specified Queue Name

Open mthrift2100 opened this issue 1 year ago • 0 comments

I have not been able to get the specified queue to persist when adding a Dynamic Recurring Job. Below is the code I am using:

 public async Task AddOrUpdateRecurringJob<T>(string jobName, Expression<Func<T, Task>> methodCall, string cronExpression, TimeZoneInfo timeZoneInfo, string queue)
 {
     _reccuringJobManager.AddOrUpdateDynamic<T>(jobName,
                                                queue,
                                                methodCall,
                                                cronExpression, 
                                                new DynamicRecurringJobOptions() { MisfireHandling = MisfireHandlingMode.Relaxed, TimeZone = TimeZoneInfo.Local });


     await Task.CompletedTask;
 }

No matter what queue name I supply, it always gets stored as 'default'

mthrift2100 avatar Oct 04 '24 15:10 mthrift2100