Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Recurring Job (AddOrUpdateDynamic) with specified Queue Name #2450

Open
mthrift2100 opened this issue Oct 4, 2024 · 0 comments
Open

Comments

@mthrift2100
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant