File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed
lib/flight_job_script_api Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 4545# stderr_path ...
4646
4747worker_processes 1
48+ timeout FlightJobScriptAPI . config . hard_timeout
4849
4950# NOTE: Unicorn does not appear to have an equivalent config option to puma's tag
5051# IIRC this isn't hard to implement manually
Original file line number Diff line number Diff line change 5757# -------------------------------------------------------------------------------
5858# command_timeout: 5
5959
60+ # -------------------------------------------------------------------------------
61+ # Hard Timeout
62+ # The maximum time a request can run for in seconds. Workers which exceed this
63+ # time will be terminated with SIGKILL.
64+ #
65+ # The environment variable flight_JOB_SCRIPT_API_hard_timeout takes precedence
66+ # -------------------------------------------------------------------------------
67+ # hard_timeout: 600
68+
6069# -------------------------------------------------------------------------------
6170# Shared Secret Path
6271# Specify the path to to shared secret config. The secret must exist before the
Original file line number Diff line number Diff line change @@ -69,6 +69,11 @@ class ConfigError < StandardError; end
6969 env_var : true ,
7070 default : '/usr/sbin:/usr/bin:/sbin:/bin'
7171 } ,
72+ {
73+ name : 'hard_timeout' ,
74+ env_var : true ,
75+ default : 600
76+ } ,
7277 {
7378 name : 'command_timeout' ,
7479 env_var : true ,
You can’t perform that action at this time.
0 commit comments