
Queue Job Cron Jobrunner
This module implements a simple queue.job runner using ir.cron triggers.
Queue Job Cron Jobrunner implements a simple queue.job runner using ir.cron triggers. 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: 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 ROADMAP for further details.
Key Features
- Cron-Based Job Processing
- Designed for Odoo.sh Environments
- Parallel Job Execution
Cron-Based Job Processing (Alternative to HttpWorkers)
Uses ir.cron triggers to schedule and run queued jobs. Leverages dedicated CronWorker threads, separate from web traffic.
Designed for Odoo.sh Environments
Bypasses inactive HttpWorkers on Odoo.sh during low traffic periods. Offers a more cost-effective approach compared to active HttpWorkers.
Configuration
Duplicate the queue_job_cron cron record as many times as needed, until you have as much records as cron workers.
GNU Affero General Public License v3.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you comply with the terms of the GNU Affero General Public License, version 3.0, available at https://www.gnu.org/licenses/agpl-3.0.html. You may develop software that uses the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those software under the terms of the GNU Affero General Public License, version 3.0. It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software without including the complete text of the GNU Affero General Public License, version 3.0, along with any applicable additional permissions. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.