Uh oh!
There was an error while loading. Please reload this page.
[IMP] queue_job_cron_jobrunner: channel - #750
Conversation
OCA-git-bot
commented
Mar 5, 2025
Hi @ivantodorovich, |
656b232 to
70b10c4Compare
alexandregaldeano
left a comment
There was a problem hiding this comment.
Once the tests are fixed, LGTM! 🚀
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
53454b8 to
d72fbcaComparethis make a lot of open file descriptors that we got the limit while instentiate jobrunner from queue_job_cron_jobrunner in the current channel implementation OCA#750
this make a lot of open file descriptors that we got the limit while instentiate jobrunner from queue_job_cron_jobrunner in the current channel implementation OCA#750
petrus-v
commented
Mar 14, 2025
This PR require #754 to avoid opened file descriptor leak ! |
OCA-git-bot
commented
Mar 14, 2025
This PR has the |
this make a lot of open file descriptors that we got the limit while instentiate jobrunner from queue_job_cron_jobrunner in the current channel implementation OCA#750
c6ff271 to
918702cComparehbrunn
commented
Mar 21, 2025
@Koudja this is still in draft state, is this intentional? |
petrus-v
commented
Mar 21, 2025
In fact we are still supervising the system and keep improving it as long we met difficulties ! yesterday we've implement the stop_processing feature to avoid to be kill by the cpu time limit in case there is a lot of job in the queue, this is not yet deployed to our production (and I'm going to somme logging). So I suppose keeping it in draft state as long we have not get some stabilities is probably better ! But review and feedback are welcome otherwise so not sure what suits most OCA conventions in such case ? |
918702c to
1c94494Comparehbrunn
commented
Mar 21, 2025
draft is good I think, because of the label I nearly merged it |
Uh oh!
There was an error while loading. Please reload this page.
I'm wondering... now that the job scheduler (misnamed jobrunner) can run on odoo.sh (#668), queue_job_cron_jobrunner could maybe be simplified to only run jobs that are in state |
1c94494 to
867608dCompare
As of today, we are not using the mentioned patch and have configured our setup to avoid spawning the job scheduler/runner, as suggested in the module’s documentation. To be honest, we haven’t spent much time evaluating this patch, so we might have missed some key information. However, we do have some concerns:
If I understand correctly, your idea is to have the queue jobrunner focus on managing job states—ensuring that tasks are enqueued while respecting channel capacities—while letting the ir.cron execute them based on priority. This approach would remove the need for HTTP workers to process jobs. That sounds like an interesting direction and avoid to duplicate the channel implementation logic. Would you be open to further designing this together or discussing the long-term vision for the module? |
sbidoul
commented
Mar 25, 2025
Yes, that's the idea.
I'm not sure either. On the project where we use the HA jobrunner on odoo.sh, we don't observe issues with this, but yeah, "obscure platform limits" are the key words. But I tend to think this is not a blocker for that approach.
We don't need this so far 🤞, but I'd be happy to discuss. |
867608d to
22a8e69Compare22a8e69 to
ac9fccbCompareKoudja
commented
May 19, 2025
I updated PR with latest comments. It's been on our production for few weeks now without any issue (with thousands jobs per day). I updated this PR state to ready for merge based on this. |
this make a lot of open file descriptors that we got the limit while instentiate jobrunner from queue_job_cron_jobrunner in the current channel implementation OCA#750
this make a lot of open file descriptors that we got the limit while instentiate jobrunner from queue_job_cron_jobrunner in the current channel implementation OCA#750
this make a lot of open file descriptors that we got the limit while instentiate jobrunner from queue_job_cron_jobrunner in the current channel implementation OCA#750
this make a lot of open file descriptors that we got the limit while instentiate jobrunner from queue_job_cron_jobrunner in the current channel implementation OCA#750
this make a lot of open file descriptors that we got the limit while instentiate jobrunner from queue_job_cron_jobrunner in the current channel implementation OCA#750
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Koudja
commented
Oct 22, 2025
We've migrated on HTTP worker, so I am closing this PR. |
Implement channel on queue_job_cron_jobrunner