-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3452370
commit 8c18e25
Showing
4 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ Queue Job Cron Jobrunner | |
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:a9ff3bc27cff35398d24b6b1dc300a5b8acc9c06d417b1969b1c2e2974e39ec9 | ||
!! source digest: sha256:8805630c706cd2c715ed4e9086e130d580daff40f87890af0f3a2c928c01db16 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png | ||
|
@@ -38,9 +38,9 @@ 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: | ||
|
||
- Odoo.sh puts HttpWorkers to sleep when there's no network activity | ||
- HttpWorkers are meant for traffic. Users shouldn't pay the price of | ||
background tasks. | ||
- Odoo.sh puts HttpWorkers to sleep when there's no network activity | ||
- HttpWorkers are meant for traffic. Users shouldn't pay the price of | ||
background tasks. | ||
|
||
For now, it only implements the most basic features of the ``queue_job`` | ||
runner, notably no channel capacity nor priorities. Please check the | ||
|
@@ -79,18 +79,18 @@ In Odoo.sh, this is done by default. | |
Parallel execution of jobs can be achieved by leveraging multiple | ||
``ir.cron`` records: | ||
|
||
- Make sure you have enough CronWorkers available (Odoo CLI | ||
``--max-cron-threads``) | ||
- Duplicate the ``queue_job_cron`` cron record as many times as needed, | ||
until you have as much records as cron workers. | ||
- Make sure you have enough CronWorkers available (Odoo CLI | ||
``--max-cron-threads``) | ||
- Duplicate the ``queue_job_cron`` cron record as many times as needed, | ||
until you have as much records as cron workers. | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
- Support channel capacity and priority. (See ``_acquire_one_job``) | ||
- Gracefully handle CronWorker CPU timeouts. (See ``_job_runner``) | ||
- Commit transaction after job state updated to started. (See | ||
``_process``) | ||
- Support channel capacity and priority. (See ``_acquire_one_job``) | ||
- Gracefully handle CronWorker CPU timeouts. (See ``_job_runner``) | ||
- Commit transaction after job state updated to started. (See | ||
``_process``) | ||
|
||
Bug Tracker | ||
=========== | ||
|
@@ -113,9 +113,9 @@ Authors | |
Contributors | ||
------------ | ||
|
||
- `Camptocamp <https://www.camptocamp.com>`__ | ||
- `Camptocamp <https://www.camptocamp.com>`__ | ||
|
||
- Iván Todorovich <[email protected]> | ||
- Iván Todorovich <[email protected]> | ||
|
||
Maintainers | ||
----------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters