ProcessQueue set up for long running functionality

0
I am trying to understand how to setup ProcessQueue job for one of the long running process in my project. I want to set this long running process to execute with least priority and utilize less resources on system giving priority to other processes running on the server. Can someone please explain how can I achieve this using ProcessQueue and functionality of below attributes in processQueue job set up. 1) Minimum Threads 2) Number of threads 3) Thread affinity 4) Queue Size  5) Delay time
asked
2 answers
1

Hi Pranay,

The first 4 bullets depend on your environment, what you're doing etc. The higher the number you configure the more it will slow down your application. You will have to do some load testing with this to see what are the right numbers in your case. You can start off with only one thread and built it up. Thread affinity can be given a range of 1 to 10 where one is the lowest priority and 10 the highest. In this case you also have to see what else you're running and what has more priority.

With the Process Queue you will not be able to delay the time when your jobs are run. The documentation starts off with typical usage scenarios of which one is:

  • You want to schedule a job but don’t want to execute the job at a specific time

You can also use the Queue module which is, according to the benchmark provided by Menno de Haas, more efficient and which has the option to built in a delay:

https://appstore.home.mendix.com/link/app/106628/

He also provided a demo project where you can play around with the Queue. You will have to check the pro's and cons of both to determine which one you want to use.

Kind Regards,

answered
0

Hi Pranay,

You can check out the example project on github

https://github.com/mendix/ProcessQueue

answered