Skip to content

Activator ignores SIGTERM/SIGINT and never exits #1215

@juan-malbeclabs

Description

@juan-malbeclabs

The activator process does not terminate on SIGTERM or SIGINT (Ctrl+C). It keeps running until forced with SIGKILL (kill -9). This suggests at least one thread/task is blocking shutdown (e.g., waiting on a channel/condvar, a blocking I/O, or a join() that never returns).

Steps to Reproduce

  1. Start the activator normally.
  2. Send SIGTERM (kill -TERM ) or press Ctrl+C in the foreground.
  3. Observe that the process remains alive indefinitely.
  4. Only kill -9 terminates it.

Expected Behavior

  • On SIGTERM/SIGINT, activator begins graceful shutdown:
    • Broadcasts a shutdown signal to workers.
    • Stops background tasks and closes sockets.
    • Exits cleanly within 5–10s with code 0 (or a specific non-zero if failures occur).

Actual Behavior

  • No clean shutdown; process stays running
  • Requires kill -9.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions