Increase wait timeout for new execution environments to 60 sec

This commit is contained in:
Sebastian Serth
2022-10-11 21:14:07 +02:00
committed by GitHub
parent 66ab00a6bd
commit ef5dd80ea7

View File

@ -99,7 +99,7 @@ class ExecutionEnvironment < ApplicationRecord
rescue Runner::Error => e
# In case of an Runner::Error, we retry multiple times before giving up.
# The time between each retry increases to allow the runner management to catch up.
if retries < 30 && !Rails.env.test?
if retries < 60 && !Rails.env.test?
retries += 1
sleep 1.second.to_i
retry