bus_alt_connection: support the cron worker also

Abierto
#3,863 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
52/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
postgresql, python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
960
Forks
1.7k
Merge medio
5 d 23 h
PR fusionados (30 d)
15

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OCA/server-tools

Todos los issues de OCA/server-tools

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.