Skip to content

add: add option to delay shutdown initiation after receiving a SIGTERM - #2

Closed
lforst wants to merge 2 commits into
supabase:mainfrom
lforst:lforst-sigterm-delay
Closed

add: add option to delay shutdown initiation after receiving a SIGTERM#2
lforst wants to merge 2 commits into
supabase:mainfrom
lforst:lforst-sigterm-delay

Conversation

@lforst

@lforst lforst commented Dec 19, 2025

Copy link
Copy Markdown

Adds an option to delay shutdown when receiving SIGTERM. This is useful in certain cloud environments (AWS ECS) where the load balancer needs time to deregister the service before the process terminates - reducing the risk of stray connections being rejected by postgREST while loadbalancing updates propagate.

  • Config: server-shutdown-wait-period (in seconds, default is 0)
  • Env: PGRST_SERVER_SHUTDOWN_WAIT_PERIOD
  • Only affects SIGTERM. SIGINT will still terminate immediately

@lforst lforst closed this by deleting the head repository Dec 23, 2025
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