bus_alt_connection: support the cron worker also

Aperta
#3,863 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
postgresql, python
Ambito
backend, databases

Direzione di ricerca

Start by reading the bus_alt_connection module's existing handling of the gevent worker's LISTEN imbus connection. Trace how cron workers issue LISTEN cron_trigger and how that connection is configured when using pgbouncer. Done means cron workers can use the appropriate connection without breaking the existing gevent-worker behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

The bus_alt_connection module allows the gevent pod to run with a specific connection to run the LISTEN imbus SQL request. However since odoo 15 the cron workers also LISTEN cron_trigger and this is not handled by the module, which makes some parts of Odoo broken when running through pgbouncer.

side note: the queue_job addon also uses LISTEN, I plan to add a setting in that addon to share the configuration with bus_alt_connection, and not add a glue module.

Lingua principale
Python
Stelle
960
Fork
1.7k
Merge medio
5g 23h
PR unite (30g)
15

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OCA/server-tools

Tutte le issue di OCA/server-tools

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.