Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: queue_job, how to set time limit for jobrunner

by
Ecosoft Co. Ltd., Kitti Upariphutthiphong
- 13/04/2024 03:54:57
Hi Stephane

Thanks for the confirmation. I also came across this README and it confirms what you say.


Unlike the regular job runner, where jobs are dispatched to the HttpWorkers, jobs are processed on the CronWorker threads by the job runner crons. This is a design decision because:

Thanks!
Kitti



On Sat, Apr 13, 2024 at 12:07 AM Stéphane Bidoul <notifications@odoo-community.org> wrote:
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

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

Reference