No job has a time limit, file transfers over SFTP have no read timeout, and the health check stays green while workers are stuck

Aperta
#224 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à
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend, devops

Direzione di ricerca

Start with the SFTP adapter at services/pipeline/src/pipeline/connections/adapters/sftp.py and the health.py endpoint, then trace job handler execution and pipeline database configuration. The issue proposes timeouts, retry behavior, statement limits, and readiness checks across several components. Done means a never returning handler is cancelled and retried, and health fails on a stale heartbeat.

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

Descrizione

bug queue: scale readiness (M3)

Found in the 2026-11-29 whole-repo review. Reported by a reviewer; missing timeouts confirmed by search, the hang itself not reproduced.

Problem

  • No job handler is wrapped in a timeout, and the job library has none of its own.
  • services/pipeline/src/pipeline/connections/adapters/sftp.py sets only a connect timeout — no keep-alive, no read/write timeout.
  • No database statement timeout is set in the pipeline.
  • /health (health.py) returns OK whenever the queue database is reachable; the worker heartbeat is reported but does not affect the result.

How it goes wrong

Four transfers stall behind a firewall that drops idle connections. All four slots of the file-transfer queue hang indefinitely; ingest and delivery stop; health stays green.

Suggested fix

Per-task timeout around every handler; SFTP keep-alive and I/O timeouts; per-role statement timeout; a readiness check that fails on a stale heartbeat or when every slot has been busy for too long.

Acceptance criteria

  • Test: a handler that never returns is cancelled and retried
  • Health check fails when the heartbeat is stale
Lingua principale
Python
Stelle
0
Fork
2
Merge medio
8h 26m
PR unite (30g)
47

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 TechTraverse/stac-higher

Tutte le issue di TechTraverse/stac-higher

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.