Hangfire
Hangfire copied to clipboard
Dynamic Recurring Job (AddOrUpdateDynamic) with specified Queue Name
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'