Skip to content

Commit

Permalink
Merge pull request ManageIQ#19381 from lfu/orch_stack_timeout_1756292
Browse files Browse the repository at this point in the history
Set default OrchestrationTemplateRunner timeout to 100 minutes.
  • Loading branch information
jrafanie authored Oct 14, 2019
2 parents 4072a08 + c5e2dc1 commit b61deda
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
class ManageIQ::Providers::CloudManager::OrchestrationTemplateRunner < ::Job
DEFAULT_EXECUTION_TTL = 10 # minutes
DEFAULT_EXECUTION_TTL = 100.minutes

def minimize_indirect
@minimize_indirect = true if @minimize_indirect.nil?
@minimize_indirect
end

def current_job_timeout(_timeout_adjustment = 1)
@execution_ttl ||=
(options[:execution_ttl].present? ? options[:execution_ttl].try(:to_i) : DEFAULT_EXECUTION_TTL) * 60
@execution_ttl ||= options[:execution_ttl].present? ? options[:execution_ttl].to_i.minutes : DEFAULT_EXECUTION_TTL
end

def start
Expand Down

0 comments on commit b61deda

Please sign in to comment.