Contributors mailing list archives

Browse archives


Re: queue_job, how to set time limit for jobrunner

Ecosoft Co. Ltd., Kitti Upariphutthiphong
- 13/04/2024 20:01:44
Thanks a lot Tom for your recipe, this can be very helpful.


On Sat, Apr 13, 2024, 9:12 PM Tom Blauwendraat <> wrote:
On 4/12/24 19:07, Stéphane Bidoul wrote:

> If you need long running jobs, you need to launch a second Odoo 

> instance on the same database with different time limits.

Instead of starting the whole Odoo, it's also possible to start the 
jobrunner as a separate service like this:

python -c "import odoo;; from 
odoo.addons import queue_job; runner = 

I don't remember why we chose this or where I got it from, but it works.

Maybe it helps! (Probably here you'd have to add an extra line of Python 
to change the cpu_limit setting after parsing the config)

Post to: