Skip to main content

test-service-shutdown-behavior

Test service shutdown behavior across traffic drain, readiness, in-flight work, queues, transactions, leases, deadlines, and restart recovery. Use when deploys or termination may interrupt useful work.

소스 정보

저장소
protosphinx/sphinxstack
최근 소스 활동
2026년 7월 29일 13:55
감지된 SKILL.md 언어
영어
스타
3
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
test-service-shutdown-behavior
category
code
description
Test service shutdown behavior across traffic drain, readiness, in-flight work, queues, transactions, leases, deadlines, and restart recovery. Use when deploys or termination may interrupt useful work.
# test-service-shutdown-behavior Shutdown is a state transition, not just a signal handler. ## When to use - Use for servers, workers, schedulers, consumers, or stateful processes. - Never test destructive shutdown against production without authorized containment. ## Preconditions - Define signals, platform grace period, readiness and liveness semantics, traffic routing, task types, and durable state. ## Procedure 1. Record shutdown states and which new work each state accepts. 2. Verify readiness fails before termination while liveness remains appropriate. 3. Test connection drain, keepalive, streaming, and new-request rejection. 4. Test transactions, tasks, message acknowledgements, leases, locks, and side effects at each interruption window. 5. Enforce deadlines, cancellation, forced exit, and bounded cleanup. 6. Restart and reconcile incomplete work without duplication or loss. 7. Observe drain duration, abandoned work, errors, and platform kills. 8. Rehearse rolling deploy, scale-down, crash, and dependency delay. ## Failure plan - If graceful completion exceeds the platform deadline, make work checkpointable rather than extending shutdown indefinitely. ## Worked example A worker loses readiness, finishes a leased job, releases unused claims, exits before the deadline, and safely retries a pre-acknowledgement message after restart. ## Done - A shutdown test report records states, signals, drain, in-flight outcomes, deadlines, forced exit, restart, and reconciliation - Request, stream, task, transaction, lease, acknowledgement, rolling-deploy, and platform-kill tests verify behavior
GitHub에서 보기