Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: queue_job, how to set time limit for jobrunner
Re: queue_job, how to set time limit for jobrunner
Re: queue_job, how to set time limit for jobrunner
by
        
            Therp, Tom Blauwendraat
        
        
        
    
        
        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; odoo.tools.config.parse_config(); from odoo.addons import queue_job; runner = queue_job.jobrunner.QueueJobRunner.from_environ_or_config(); runner.run()" 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)
Reference
- 
                queue_job, how to set time limit for jobrunnerbyEcosoft Co. Ltd., Kitti Upariphutthiphong- 12/04/2024 18:03:16 - 0- 
                Re: queue_job, how to set time limit for jobrunnerbyEcosoft Co. Ltd., Kitti Upariphutthiphong- 13/04/2024 20:01:44 - 0
- 
                Re: queue_job, how to set time limit for jobrunnerbyTherp, Tom Blauwendraat- 13/04/2024 16:10:05 - 0
- 
                Re: queue_job, how to set time limit for jobrunnerbyEcosoft Co. Ltd., Kitti Upariphutthiphong- 13/04/2024 03:54:57 - 0
- 
                Re: queue_job, how to set time limit for jobrunnerbyAcsone SA/NV, Stéphane Bidoul- 12/04/2024 19:04:43 - 0
 
-