diff options
Diffstat (limited to 'internal/rubyserver/worker.go')
-rw-r--r-- | internal/rubyserver/worker.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/rubyserver/worker.go b/internal/rubyserver/worker.go index 79f80334b..41de27a6d 100644 --- a/internal/rubyserver/worker.go +++ b/internal/rubyserver/worker.go @@ -137,6 +137,10 @@ func (w *worker) monitor() { } func (w *worker) waitTerminate(pid int) { + // Wait for in-flight requests to reach the worker before we slam the + // door in their face. + time.Sleep(1 * time.Minute) + terminationCounter.WithLabelValues(w.Name).Inc() log.WithFields(log.Fields{ |