From de92338913510d3bde5ece737f13202899d4e3f8 Mon Sep 17 00:00:00 2001 From: Ayush Newatia Date: Thu, 16 Jul 2026 21:30:50 +0100 Subject: [PATCH] Allow the user to set the graceful stop timeout using an environment variable --- lib/async/container/group.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/async/container/group.rb b/lib/async/container/group.rb index def3182..ad43ac3 100644 --- a/lib/async/container/group.rb +++ b/lib/async/container/group.rb @@ -160,7 +160,7 @@ def stop(graceful = true) self.interrupt if graceful == true - graceful = DEFAULT_GRACEFUL_TIMEOUT + graceful = ENV.fetch("ASYNC_CONTAINER_GRACEFUL_STOP_TIMEOUT", DEFAULT_GRACEFUL_TIMEOUT).to_f end clock = Clock.start