Set Queue Jobs on EDI
Project description
Edi Queue Oca
This module integrates EDI exchange records with Queue Job, so that the four core exchange actions — generate, send, receive, and process — are dispatched as background jobs instead of running synchronously.
Each exchange type can optionally route its jobs to a specific channel, set a priority, or hold all jobs until a fixed time of day — useful when a trading partner’s receiving system has a nightly processing window or when the operator wants to concentrate resource-intensive EDI work in off-peak hours.
Table of contents
Usage
Automatic job dispatch
All exchange actions on edi.exchange.record are dispatched as background jobs automatically. No per-record configuration is required; the integration is active for every exchange type as soon as the module is installed.
Per-type job configuration
Each Exchange Type gains a Queue tab with optional settings:
Field |
Purpose |
|---|---|
Job channel |
Route jobs to a specific channel (e.g. root.edi.high). |
Job priority |
Integer priority passed to the queue job (lower = higher priority). |
Enable ETA Scheduling |
Toggle to activate daily job accumulation (see below). |
Execution time |
Hour, minute, and timezone at which accumulated jobs are released. Visible only when ETA Scheduling is enabled. |
Accumulating jobs until a fixed daily time
Enabling ETA Scheduling on an exchange type causes every job created for that type to be held in the queue until the configured time of day, rather than being processed immediately. All jobs that arrive during the day accumulate and are released together at that moment.
Typical use cases:
A trading partner’s receiving system only processes incoming files at a specific nightly window (e.g. 22:00).
Resource-intensive EDI operations (large exports, heavy transformations) should be deferred to off-peak hours to avoid competing with daytime workloads.
Operational preference to send a batch of documents at a predictable daily time instead of dispatching them one by one in real time.
The execution time is configured with three fields:
Hour — hour of the day (00–23).
Minute — minute of the hour (00–59).
Timezone — the timezone in which the hour and minute are interpreted. Defaults to the current user’s timezone.
At runtime the configured time is converted to the next matching UTC datetime and set as the queue job ETA. If the target time for today has already passed, the job is automatically scheduled for the same time tomorrow.
When Enable ETA Scheduling is off, jobs are dispatched immediately as usual.
Duplicate-job prevention
An identity key is attached to every queued job, so re-triggering an action for a record that already has a pending job does not enqueue a duplicate.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
Simone Orsi <simahawk@gmail.com>
Enric Tobella <enric.tobella@dixmit.com>
Manuel Regidor <manuel.regidor@sygel.es>
Thien Vo <thienvh@trobz.com>
Jordi Masvidal <jordi.masvidal@forgeflow.com>
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
This module is part of the OCA/edi-framework project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addon_edi_queue_oca-19.0.1.1.0-py3-none-any.whl.
File metadata
- Download URL: odoo_addon_edi_queue_oca-19.0.1.1.0-py3-none-any.whl
- Upload date:
- Size: 39.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d26d4a7531eaa58123af0744cad985755d641e636dcf7272351b351811c7042e
|
|
| MD5 |
1b5a27ed9806daa7da9402126cad755b
|
|
| BLAKE2b-256 |
f07c20763bc5199849e4d063762e3a12c119070767b3f83f0bbe992d6c80443d
|