From c5e2dc18db46a71e6f08800dd253d2e7b335f348 Mon Sep 17 00:00:00 2001 From: Lucy Fu Date: Wed, 9 Oct 2019 09:23:07 -0400 Subject: [PATCH] Set default job timeout to 100 minutes. https://bugzilla.redhat.com/show_bug.cgi?id=1756292 --- .../providers/cloud_manager/orchestration_template_runner.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/models/manageiq/providers/cloud_manager/orchestration_template_runner.rb b/app/models/manageiq/providers/cloud_manager/orchestration_template_runner.rb index 1fc66d8a59e..9341b7e0538 100644 --- a/app/models/manageiq/providers/cloud_manager/orchestration_template_runner.rb +++ b/app/models/manageiq/providers/cloud_manager/orchestration_template_runner.rb @@ -1,5 +1,5 @@ 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? @@ -7,8 +7,7 @@ def 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