How to specify queue name for scheduled jobs


#1

How do you specify the queue name for scheduled jobs? I notice that the QueueAttribute does not have any effect.


#2

Doesn’t this work?

[Queue("critical")]
public void SomeMethod() { }

BackgroundJob.Enqueue(() => SomeMethod());

#3

It does for Enqueue but not for Schedule


#4

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.


#5

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.