Skip to content

compose: the control plane is killed before shutdown records its streams offline (no stop_grace_period) #259

Backlog

Description

@avi-papineni

docker-compose.yml sets no stop_grace_period for the innerwall service. Docker then sends SIGKILL ten seconds after SIGTERM, its default. With agents connected, innerwall serve spends those ten seconds on its graceful window, because sync streams never end on their own. Only after that does it end the streams, and since #258 it then waits up to five seconds more for their handlers to record each workload offline.

So under the supported compose deployment, docker compose stop, down, or up with a new image kills the control plane at about the moment it starts ending streams. The offline marks that #113 / #258 make reliable are lost there, and whatever else the handlers write on the way out is cut off.

Likely fix. Set stop_grace_period on the innerwall service to cover the serve bound, at least 15 s (20 s leaves margin), with a comment naming the bound in docs/reference/innerwall-cli.md (serve). Check whether any other supervisor the docs describe (a systemd unit, if one is documented) needs the same.

Found while working on #113.


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions