How do you specify the queue name for scheduled jobs? I notice that the QueueAttribute does not have any effect.
Doesn’t this work?
[Queue("critical")]
public void SomeMethod() { }
BackgroundJob.Enqueue(() => SomeMethod());
It does for Enqueue
but not for Schedule
I just ran across the same issue in v1.6.9 on .NET 4.6.2. I see Issue 799 with a PR that claims to fix it, but apparently only on .NET Core.
Seems it is still not working in version 1.7. I’m working with .NET 4.6.1
This is annoying in a development environment because scheduled jobs are executed on other developers machine in place of on my own workstation.