Bound SSH connect and the liveness check for queue status queries

Aperta
#1,150 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

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.

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

Descrizione

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.

Lingua principale
Python
Stelle
55
Fork
26
Merge medio
3g 3h
PR unite (30g)
8

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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

Tutte le issue di ReactionMechanismGenerator/ARC

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.