A job that fails because of its own settings is treated as a Docker outage and retried every minute forever

Aperta
#228 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à
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
54/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, python, typescript
Ambito
backend, devops

Direzione di ricerca

Start with services/pipeline/src/pipeline/process/docker_executor.py around lines 498–529 and process/runner.py around line 354; trace how Docker create/start errors are classified and how attempts are counted. Check the related process tests and app/src/lib/processes/schemas.ts around line 424 for code size validation. Done when the specified command failure ends as failed after its attempts and oversized code is rejected when saved.

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

Descrizione

bug queue: k8s compute (K)

Found in the 2026-11-29 whole-repo review. Error classification reported by a reviewer; the specific Docker responses were not reproduced.

Problem

In services/pipeline/src/pipeline/process/docker_executor.py (~498-529) almost any HTTP error from Docker on create/start becomes EngineHTTPError, a subclass of "executor unavailable". The runner (process/runner.py ~354) puts such runs back in the queue without spending an attempt. But errors like "command not found in image" are caused by the run's own configuration and will never succeed. Likely second trigger: inline code is passed in one environment variable, which the operating system caps at about 128 KB, and the app has no length limit on code (app/src/lib/processes/schemas.ts ~424).

How it goes wrong

The run stays "queued", re-pulling the image and creating a container every minute indefinitely; nothing alerts.

Suggested fix

Treat 4xx answers from create/start as the run's own failure (spend an attempt); re-queue only on connection errors. Cap code size at save time or pass code another way.

Acceptance criteria

  • Test: a run with a non-existent command ends as failed after its attempts
  • Oversized code is rejected when saved
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.