Bound SSH connect and the liveness check for queue status queries

Abierto
#1,150 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python
Área
backend

Línea de trabajo

Start at get_server_job_ids, then follow borrow_ssh_client into SSHClient.connect() and check_connections to see how the queue query timeout is applied. Add coverage for a server whose connect raises socket.timeout; done means the query records a failure within the timeout instead of waiting through retries. The issue does not name a test file, so locate the relevant queue query tests first.

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

Descripción

Follow-up from a bot review on #1122 (comment 4729086259). Not a v2.0.0 blocker.

get_server_job_ids reaches a remote queue through borrow_ssh_client → SSHClient.connect().
That retries a transport-level failure every 60 s for connection_attempts=1440 (24 h) and
checks liveness with an untimed exec_command('ls') (check_connections).
queue_query_timeout bounds only the status command. So an unreachable server blocks the
scheduler loop, and every other server's polling, for up to a day before queue_outage_limit
can apply. For queue queries, connect with a small attempt count (or a deadline tied to
queue_query_timeout), and time the liveness check, so a failure becomes a QueueQueryError
at once. Test: a server whose connect raises socket.timeout; assert one queue query records a
failure within the timeout rather than sleeping.

Lenguaje dominante
Python
Estrellas
55
Forks
26
Merge medio
3 d 3 h
PR fusionados (30 d)
8

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

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 ReactionMechanismGenerator/ARC

Todos los issues de ReactionMechanismGenerator/ARC

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.