Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: queue_job, how to set time limit for jobrunner

by
Acsone SA/NV, Stéphane Bidoul
- 12/04/2024 19:04:43
Hi Kitti,

The jobs triggered by queue_job run in regular workers. So limit_time_cpu/limit_time_real apply (the job runner actually launch them with an HTTP request).
limit_time_real_cron is exclusively for Odoo regular cron jobs (Scheduled Actions).

If you need long running jobs, you need to launch a second Odoo instance on the same database with different time limits.

Best regards,

-Stéphane

On Fri, Apr 12, 2024 at 6:06 PM Kitti Upariphutthiphong <notifications@odoo-community.org> wrote:
Dear community,

So far, when there is a job queue that spend long time to run, it seem time limit now follow "limit_time_cpu".

Which surprise me, because I though it should follow "limit_time_real_cron" as in Odoo cron.

limit_time_cpu which is for http request, normally not a high value, i.e, 60 seconds. But to accommodate the long running job, I am forced to expand the value which can be harmful.

Am I missing something?

Many thanks
Kitti U.



_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference