Running single cron based on the name


I have a very heavy cron job schedule. I would like to run it on another single docker so that it won’t effect other cron job running.
May I know is there any statement or method to differentiate the cron job?

No you can not select which job the cron will run. Mainly because the user can register any task.

But instead of running the long job during the cron, maybe you could post it (or divide it) to the queue. There you can launch a pool of worker for a specific queue name.

Hi @ced,

Thank you for the fast respond.
My jobs is scheduling calling api to third party for getting the shipment out orders.
So, since it not trigger by User so it might not be able to call worker.

However, since you had mentioned the worker and using pool of worker.
I am very interested for this Idea.

are you able to give some hint or help for how to do that? it will be great
best regards,

Pretty strange that it is slow.
But by the way, why not trigger the call when the shipment is done for example. And have just a cron task that relaunch the task only for shipments who failed.

I do not see why. Any code can push to the queue: Task Queue — trytond latest documentation

As you stated before, can launch the pool of workers to run the queue job.

How to specify the worker to run the “named” queue job?
Is it indicate at command cli?

$ trytond-worker --help
  --name NAME           work only on the named queue