Skip to content

feat(1061): graceful shutdown with configurable drain timeout - #1074

Open
abdoolyaro wants to merge 1 commit into
CodeGirlsInc:mainfrom
abdoolyaro:feat/1061-graceful-shutdown
Open

feat(1061): graceful shutdown with configurable drain timeout#1074
abdoolyaro wants to merge 1 commit into
CodeGirlsInc:mainfrom
abdoolyaro:feat/1061-graceful-shutdown

Conversation

@abdoolyaro

Copy link
Copy Markdown
Contributor
  • config: add SHUTDOWN_TIMEOUT_SECS (default 30s), validated > 0

  • cache: add close() to CacheBackend/RedisCache (sends QUIT)/InMemoryCache (no-op)

  • main: handle SIGINT/SIGTERM, race in-flight drain against timeout via

  • tests: verify in-flight requests survive shutdown, and that a drain

    exceeding the timeout still terminates rather than hanging

Closes #1061

- config: add SHUTDOWN_TIMEOUT_SECS (default 30s), validated > 0

- cache: add close() to CacheBackend/RedisCache (sends QUIT)/InMemoryCache (no-op)

- main: handle SIGINT/SIGTERM, race in-flight drain against timeout via

- tests: verify in-flight requests survive shutdown, and that a drain

  exceeding the timeout still terminates rather than hanging

Closes CodeGirlsInc#1061
@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

@abdoolyaro is attempting to deploy a commit to the Mftee's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 27, 2026

Copy link
Copy Markdown

@abdoolyaro Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

[CT-62] Add graceful shutdown

1 participant