I am using SQL Server implementation.
I need to categorize jobs based on the priority and so I have created the queue like following
var options = new BackgroundJobServerOptions
{
ServerName = “Server1”,
WorkerCount = 1,
Queues = new[] { “critical”,“normal”,“low”}
};
But when the jobs is executed, it picks the critical one first and then pick from the queue > low, though I was expecting to pick the > normal queue next.
Then I have changed it to name the queues as a,b,c and it is working.
So my guess it is using the alphabetical order, not the order in which the queue is specified?