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

BackgroundJobClient.Enqueue Appears To Be Ignoring Queue Parameter #2384

Open
StrangeWill opened this issue Apr 2, 2024 · 1 comment
Open

Comments

@StrangeWill
Copy link

StrangeWill commented Apr 2, 2024

Given the following code:

BackgroundJobClient.Enqueue<JobDoer>("priority-analysis", dj=> dj.DoJob(null!, id, null));

Calling this:

[Queue("analysis")]
public async Task DoJob(PerformContext? performContext, Guid testId, DateTime? _lastRun)
{

Will cause the job to end up in the "analysis" queue.

If I remove [Queue("analysis")] it just uses the default queue.

I'm using the default implementation of IBackgroundJobClient when injected via .NET 7.

@StrangeWill
Copy link
Author

StrangeWill commented Apr 2, 2024

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