mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Merge pull request #506 from FlavourSys/config_worker_timeout
allow changing of worker_timeout in config file
This commit is contained in:
commit
f59f8d660f
2 changed files with 8 additions and 0 deletions
|
@ -138,6 +138,9 @@
|
||||||
#
|
#
|
||||||
# tag 'app name'
|
# tag 'app name'
|
||||||
|
|
||||||
|
# Change the default timeout of workers
|
||||||
|
#
|
||||||
|
# worker_timeout 60
|
||||||
|
|
||||||
# === Puma control rack application ===
|
# === Puma control rack application ===
|
||||||
|
|
||||||
|
|
|
@ -367,6 +367,11 @@ module Puma
|
||||||
def tag(string)
|
def tag(string)
|
||||||
@options[:tag] = string
|
@options[:tag] = string
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# *Cluster mode only* Set the timeout for workers
|
||||||
|
def worker_timeout(timeout)
|
||||||
|
@options[:worker_timeout] = timeout
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue