Queue Job Cron Jobrunner
queue_job_cron_jobrunner · OCA/queue
-
Security25/25No findings
-
Activityn/aNo commit data
-
Required by5/250 modules depend on it
-
Maturity25/25In 7 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `SELECT id FROM queue_job WHERE state = 'pending' AND (eta IS NULL OR eta <= (now() AT TIME ZONE 'UTC')) ORDER BY priority, date_created LIMIT 1 FOR NO KEY UPDATE SKIP LOCKED` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module 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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
ir_cron_view_form |
ir.cron | form | Inherits base.ir_cron_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
-
queue_job_runnerBooleanhelp='If checked, the cron is considered to be a queue.job runner.'
No public methods.
No new fields.
Public methods (2)-
create(self, vals_list)@api.model_create_multi -
write(self, vals)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…