From 4cd70f2bad7baef5ce7bca2d37a779448a4ff1d0 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Thu, 4 Nov 2021 17:08:19 +0100 Subject: [PATCH] Add comment for retries to Runner#execute_command --- app/models/runner.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/runner.rb b/app/models/runner.rb index d92b66bc..6e308e4f 100644 --- a/app/models/runner.rb +++ b/app/models/runner.rb @@ -103,6 +103,7 @@ class Runner < ApplicationRecord try += 1 if try == 1 + # This is only used if no files were copied to the runner. Thus requesting a second runner is performed here # Reset the variable. This is required to prevent raising an outdated exception after a successful second try e = nil retry