Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4e7190cb30ce25419533e77b48574b89ef2d3f90677c3237da19924bcabef03a
Ticket: d3b80da6ee4a9ed2bc71fdc349404c92556cdcfc
serve: graceful shutdown hangs on SIGTERM; deploys silently serve a stale binary
User & Date: tmp-ops on 2026-08-22 11:06:12
Changes

  1. Untracked field cmimetype: "text/x-markdown"
  2. comment changed to:
    Observed 2026-08-22: the serve process ignored four SIGTERMs across ~9 hours (started 21:28, still serving at 06:04). Each qdeploy killed politely, the new binary failed to bind 8950 and died, and the stale process kept serving — three UI reviews happened against a binary the tree no longer contained.
    
    Likely path: the shutdown handler drains ingest/mirror rounds; with pulls timing out (context deadline exceeded across many repos in the same window) the drain never completes and the signal is effectively swallowed.
    
    Fix shape: bound the graceful drain (e.g. 10s) then hard-exit; second TERM = immediate exit. A server that cannot be restarted by TERM turns every deploy into a silent lie.
    
  3. status changed to: "Open"
  4. title changed to:
    serve: graceful shutdown hangs on SIGTERM; deploys silently serve a stale binary