Use custom timeout in router
This commit is contained in:
@@ -58,7 +58,7 @@ module Pipeline::Rpc
|
|||||||
|
|
||||||
def default_timeout
|
def default_timeout
|
||||||
return 300 if parsed_msg["action"] == "build_container"
|
return 300 if parsed_msg["action"] == "build_container"
|
||||||
return parsed_msg["execution_timeout"].to_i if parsed_msg["execution_timeout"]
|
return 2 + parsed_msg["execution_timeout"].to_i if parsed_msg["execution_timeout"]
|
||||||
5
|
5
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user