Uh oh!
There was an error while loading. Please reload this page.
[15.0][ADD] queue_job_cron_jobrunner - #415
Conversation
defd5d9 to
d0b96a7CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
6ee2887 to
db8cefbCompare
simahawk
left a comment
There was a problem hiding this comment.
LG and FTR we are testing it on odoo.sh these days ;)
OCA-git-bot
commented
Apr 9, 2022
This PR has the |
simahawk
commented
Apr 10, 2022
@ivantodorovich wanna squash or we merge like this? |
db8cefb to
43b27cbCompareivantodorovich
commented
Apr 11, 2022
@simahawk done ;) |
simahawk
commented
Apr 11, 2022
/ocabot merge nobump |
OCA-git-bot
commented
Apr 11, 2022
This PR looks fantastic, let's merge it! |
OCA-git-bot
commented
Apr 11, 2022
Congratulations, your PR was merged at d6a5c13. Thanks a lot for contributing to OCA. ❤️ |
StefanRijnhart
commented
Apr 12, 2022
For the record, this allows you to run jobs on the 'hybrid model of multiple threaded workers' of Odoo.sh as mentioned in #169, right? |
ivantodorovich
commented
Apr 12, 2022
That's right, by getting rid of the job runner. Instead it uses async |
I've (tried to) create a backport from 15.0 to 14.0. As known, 14.0 does not feature the @ivantodorovich would be great if you could have a look at the PR. Thanks for the initial commit. |
guewen
commented
Nov 1, 2022
Hi @amigrave, this is the module we spoke about in Brussels :) |
This module implements a simple
queue.jobrunner usingir.crontriggers.It's meant to be used on environments where the regular job runner can't be run, like on Odoo.sh.
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:
For now, it only implements the most basic features of the
queue_jobrunner, notably no channel capacity nor priorities.Please check the ROADMAP for further details.
For the easiest case, no configuration is required besides installing the module.
To avoid CronWorker CPU timeout from abruptly stopping the job processing cron, it's recommended to launch Odoo with
--limit-time-real-cron=0, to disable the CronWorker timeout altogether. (In Odoo.sh, this is done by default)Parallel execution of jobs can be achieved by leveraging multiple
ir.cronrecords:--max-cron-threads)queue_job_croncron record as many times as needed, until you have as much records as cron workers.Related to:
ping @simahawk@guewen