[15.0][IMP] queue_job: Configure default subchannel capacity.#698
[15.0][IMP] queue_job: Configure default subchannel capacity.#698
Conversation
|
Hi @guewen, |
|
My own use case is that I run multi-company odoo with an environment like ODOO_QUEUE_JOB_CHANNELS=root:8,single:1. The single channel is for problem children that tend to generate an excess of SerializationFailure if executed in parallel. I've recently determined that those SerializationFailure are company-specific, so a channel per company would improve parallelism. Per @sbidoul in OCA Discord
This setting allows me to limit the capacity of auto-created channels. |
50e748b to
ee6389b
Compare
|
Thanks for addressing this @amh-mw I would have a preference for configuring this in the parent channel, instead of globally. |
Understood. I will unfortunately not have time to circle back around to that request until next year. Would it be possible to mark this issue |
|
@amh-mw Count on me to repoen it if the stale bot closes it. |
|
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. |
1783ea6 to
b60f638
Compare
This adds a new `subcapacity` option to channels that allows the configuration of the default capacity for autocreated child channels. For example, environment `ODOO_QUEUE_JOB_CHANNELS=root:8:subcapacity=1` would set the capacity of an autocreated `root.sub` channel to 1.
b60f638 to
5f898da
Compare
|
@sbidoul Version two ready for review. |
|
Reopening against 18.0 #767 |
This adds a new
subcapacityoption to channels that allows theconfiguration of the default capacity for autocreated child channels.
For example, environment
ODOO_QUEUE_JOB_CHANNELS=root:8:subcapacity=1would set the capacity of an autocreated
root.subchannel to 1.