Skip to main content

We have a slow running overnight job - Calculate Customer Credit which runs on default queue - ‘0’.

 

This is taking a long time to run, so would like to move a custom job which keeps stalling behind this queue to a faster queue.


Does anyone know the line of code i need to specifiy the batch queue the custom job will run on?

I guess you already know that you can specify which queue a function should execute in by adding the function from the background job under the batch queue?

 

If that was not what you meant and if you are coding and you create the background job manually, you can specify a hardcoded batch queue in the method Transaction_SYS.Deferred_Call

 


Thank you for both answers - i didn tknow i could add the function manually in batch queue configuration so thats appreciated!


If I may suggest another thing.

If you have a slow running job in the default queue it might be a good thing to create a separate queue for that one and move it there. if you do that you are  sure that no other jobs in the default queue will  have to wait for the slow one.


When you refresh the dictionary cache and run the job once, it’ll be put into the Default Queue. You can move it from the Default Queue to a different queue by dragging it with your mouse.