Skip to content

Commit

Permalink
Set default job timeout to 100 minutes.
Browse files Browse the repository at this point in the history
  • Loading branch information
lfu committed Oct 10, 2019
1 parent cd215c7 commit c5e2dc1
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 c5e2dc1

Please sign in to comment.