[15.0][IMP] Make default subchannel capacity configurable.
Either ODOO_QUEUE_JOB_DEFAULT_SUBCHANNEL_CAPACITY may be set as an environment variable, or default_subchannel_capacity may be set in the [queue_job] config file stanza.
Hi @guewen, some modules you are maintaining are being modified, check this out!
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
Undeclared channels are auto created at runtime, but with an unlimited capacity.
This setting allows me to limit the capacity of auto-created channels.
Thanks for addressing this @amh-mw
I would have a preference for configuring this in the parent channel, instead of globally.
Like this is done, for instance for the throttle config.
I would have a preference for configuring this in the parent channel, instead of globally. Like this is done, for instance for the
throttleconfig.
Understood. I will unfortunately not have time to circle back around to that request until next year. Would it be possible to mark this issuenostale?
@amh-mw Count on me to repoen it if the stale bot closes it. ~Can you set it Draft?~ [done]
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. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.
@sbidoul Version two ready for review.
Reopening against 18.0 https://github.com/OCA/queue/pull/767