[RFC] mechanism to configure the root channel capacity independently of other subchannels

Offen
#857 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
15/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Ruhig
Tech-Stack
python
Bereich
backend

Rechercherichtung

The payload names no source files or tests. The entry point it mentions is the ODOO_QUEUE_JOB_CHANNELS configuration, which sets root channel capacity and subchannel limits together. Settle the design first, meaning how a root capacity setting should sit apart from subchannel definitions, and agree it with maintainers in the thread. Done means an agreed proposal, and any implementation would then need its own scope.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement

Is your feature request related to a problem?

The queue_job channels configurations (ODOO_QUEUE_JOB_CHANNELS) is used to configure the root channel capacity, which in turn is closely related to the number of available Odoo workers. It is also used to configure subchannels which is used to control concurrency across different job types.

When configuring different environments (prod, staging, ...) the number of available Odoo workers varies across environment so we want to change the root channel capacity per environment. However, to do that we also need to update the full subchannels configuration, which leads to duplication in configurations.

Describe the solution you'd like

A mechanism to configure the root channel capacity independently of the subchannels configuration.

Describe alternatives you've considered

Copy the full configuration in each environment.

Vorherrschende Sprache
Python
Sterne
271
Forks
602
Ø Merge
4 T. 4 Std.
Gemergte PRs (30 T.)
6

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus OCA/queue

Alle Issues in OCA/queue

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.