Skip to content

Allow for graceful shutdowns

Ahmad Sherif requested to merge graceful-shutdown into master

Previously, graceful_stop_timeout was only respected when a SIGHUP is signaled to Gitaly, other signals such as SIGTERM or SIGINT caused the process to shutdown immediately, interrupting in-flight requests.

With this change, graceful_stop_timeout is respected regardless of how the process was signaled, which would also come in handy for when Gitaly is run in K8s (due to how K8s manages pods by shutting them down instead of reloading processes).

Related to #4747 (closed)

Edited by Ahmad Sherif

Merge request reports