Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Terminator calls `system_shutdown` immediately when parent goes down, ignoring `shutdown_timeout` for placed children

Abierto
#86 0 comentarios 3 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
elixir, kubernetes

Línea de trabajo

Start in lib/flame/terminator.ex at the system_stop/2 call around line 201, then compare it with terminate/2 and the place_child documentation for link: false and shutdown_timeout. Trace the shutdown sequence; done means the intended timeout semantics are resolved and the relevant implementation or documentation is updated with regression coverage.

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

Descripción

We're using FLAME to persist WebRTC call-routing processes across deployments. The idea is to run packet-routing processes on FLAME runner nodes via place_child with link: false, so that when the parent node restarts during a deploy, the runner and its placed children survive until the new parent can reconnect.

The place_child docs say:

:link – Whether the caller should be linked to the remote child process to prevent long-running orphaned resources. Defaults to true. Set to false to support
long-running work that you want to complete within the :shutdown_timeout of the remote runner, even when the parent process or node is terminated.

However, when the parent node goes down, FLAME.Terminator calls system_stop/2 immediately. It does not wait for shutdown_timeout before initiating shutdown: https://github.com/phoenixframework/flame/blob/27b94dafd874cd9747007205d25ee2d81349de07/lib/flame/terminator.ex#L201

The shutdown_timeout seems to only apply in terminate/2 to drain in-flight RPC calls-- it doesn't delay the system_shutdown() call itself. So placed children with link: false get no grace period to finish their work; the runner starts terminating immediately.

Is this the intended behavior? We read the link: false docs as implying placed children would get up to shutdown_timeout to complete their work when the parent goes away.

Should the Terminator delay calling system_stop() to honor that, or is there a different mechanism we should be using for this use case?

Environment

  • FLAME: v0.5.3
  • Backend: flame_k8s_backend v0.5.7
Lenguaje dominante
Elixir
Estrellas
1.2k
Forks
68
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 phoenixframework/flame

Todos los issues de phoenixframework/flame

Issues similares

Más issues de Elixir

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.