CallbackService.run()/arun() should support a configurable timeout
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Start with CallbackService.run() and arun(), then inspect the pulp_workflow.app.tasks.run_callback dispatch path and the corresponding SigningService.sign()/asign() behavior in pulpcore. Determine how a configurable default timeout should apply to both subprocess paths and how it should align with the upstream signing-service pattern. Done means the timeout behavior and its tests cover synchronous and asynchronous callbacks without leaving a hung process.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
CallbackService.run() and arun() invoke a user-supplied script via
subprocess.run(...) / asyncio.create_subprocess_exec(...) with no timeout,
so a hung callback (e.g. a script that makes an HTTP call without its own
client-side timeout) will pin a Pulp worker indefinitely until the worker is
restarted or the process is killed externally.
Mitigations already in place:
- Callbacks are dispatched as their own Pulp tasks
(pulp_workflow.app.tasks.run_callback), so a hung callback ties up a worker
slot but does not stall the originating workflow's state machine. - Only admins (
callbackservice_admin) can register callback scripts, so this
is a self-inflicted-foot-gun rather than an unauthenticated DoS surface.
Notes:
- This mirrors
pulpcore.app.models.SigningService.sign()/asign()exactly,
which also have no timeout. Adding a timeout knob here without doing the
same forSigningServiceupstream would diverge from the established
pattern. - Suggested shape if/when this is addressed: a
WORKFLOW_CALLBACK_TIMEOUT
setting (default e.g. 300s), passed tosubprocess.run(..., timeout=...)in
run()and wrapped withasyncio.wait_for(process.communicate(), ...)plus
process.kill()onTimeoutErrorinarun(). Ideally pushed upstream into
SigningServiceas well so both inherit the same behavior.
Originally raised by the Copilot reviewer on #11.
- Lenguaje dominante
- Python
- Estrellas
- 1
- Forks
- 3
- Merge medio
- 2 d 2 h
- PR fusionados (30 d)
- 7
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pulp/pulp_workflow
-
Update the demo docsAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
pulp/pulp_workflow#78 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
pulp/pulp_workflow#79 ·
-
Add user docsAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
pulp/pulp_workflow#77 ·
-
Check callback securityAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
pulp/pulp_workflow#76 ·
-
Speed up test suiteAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
pulp/pulp_workflow#49 ·
Todos los issues de pulp/pulp_workflow
Issues similares
-
bug(mcp): handle malformed and partial reranker responses safelyPosiblemente ocupada @KamilEjaz890 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
kubeflow/docs-agent#301 ·
Los mantenedores suelen responder en 4 días
-
Invalid syntax in sshtunnelAbiertoBug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
pgadmin-org/pgadmin4#10797 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
gcivil-nyu-org/team5-mon-fall26#132 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
gcivil-nyu-org/team4-mon-fall26#291 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
gcivil-nyu-org/team3-mon-fall26#147 ·
Los mantenedores suelen responder en 2 días