Skip to content

Fix Sidekiq stop_sequence signal (TTIN→TSTP) + add long-running-jobs guide#15

Draft
lvangool wants to merge 1 commit into
mainfrom
feature/sup-975-sidekiq-long-running-jobs-across-deploys-pattern-not
Draft

Fix Sidekiq stop_sequence signal (TTIN→TSTP) + add long-running-jobs guide#15
lvangool wants to merge 1 commit into
mainfrom
feature/sup-975-sidekiq-long-running-jobs-across-deploys-pattern-not

Conversation

@lvangool
Copy link
Copy Markdown
Member

Summary

  • Corrects the procfile_metadata stop_sequence example in manifest/_processes.mdx from ttin to tstp.
  • Adds a warning Callout to _processes.mdx explaining the signal semantics (TSTP = quiet mode since Sidekiq 5.0; TTIN = backtrace dump only; USR1 = deprecated in 7.0+).
  • Adds a new how-to page build-and-config/long-running-sidekiq-across-deploys.mdx with a signal-semantics table, a worked stop_sequence example, and cross-links.

Why

On HS #33436 a customer running Sidekiq 7.3.6 followed our documented ttin, 120, term, 5, kill example and saw workers keep fetching new jobs throughout the 120-second wait, defeating the graceful drain. In Sidekiq 5+ TTIN only dumps thread backtraces — it does not start quiet mode. The correct quiet-mode signal is TSTP. This was a correctness bug in the docs (originally filed as SUP-979) compounded by a discoverability gap: the existing content lives under the signal-centric "Process Signal Options" heading and doesn't surface for product-term searches like "long-running sidekiq across deploys" (SUP-975).

Linear

  • SUP-975 (absorbs SUP-979)
  • Originating ticket: HS #33436

Test plan

  • yarn validate:mdx passes
  • New page renders; signal-semantics table and Callout display correctly
  • Cross-links resolve both ways (_processes.mdx ↔ new page)
  • Verify the worked example is accurate for a reader on Sidekiq 7.x

🤖 Generated with Claude Code

The procfile_metadata example used TTIN, which in Sidekiq 5+ only dumps
thread backtraces and does not start quiet mode, so workers kept fetching
new jobs throughout the shutdown wait window. Switch the example to TSTP
(the correct quiet-mode signal since Sidekiq 5.0) and add a Callout
explaining the TSTP/TTIN/USR1 semantics and version compatibility.

Also adds a dedicated how-to page so the pattern is discoverable by the
terms customers search ("long-running sidekiq across deploys") rather than
only under the signal-centric "Process Signal Options" heading.

Linear: SUP-975 (absorbs SUP-979)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@linear
Copy link
Copy Markdown

linear Bot commented May 20, 2026

SUP-975

@lvangool lvangool marked this pull request as draft May 20, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant