Trying to delay Phoenix shutdown

Seems like you’re testing “accepting new requests” as “responding”. If your server still accepts new requests after received SIGTERM - then when will it be “safe” to stop? :wink:

What you actually want is graceful shutdown with connection draining, which stops accepting more requests, and finishes existing requests.

The behavior you explained, which is the server is running but not accepting more requests, seems desired, actually.

Related:

1 Like