Skip to content

Commit 4fdc88f

Browse files
committed
Do not retry tasks by default anymore
1 parent f44870b commit 4fdc88f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MC/bin/o2_dpg_workflow_runner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
parser.add_argument('--webhook', help=argparse.SUPPRESS) # log some infos to this webhook channel
5252
parser.add_argument('--checkpoint-on-failure', help=argparse.SUPPRESS) # debug option making a debug-tarball and sending to specified address
5353
# argument is alien-path
54-
parser.add_argument('--retry-on-failure', help=argparse.SUPPRESS, default=2) # number of times a failing task is retried
54+
parser.add_argument('--retry-on-failure', help=argparse.SUPPRESS, default=0) # number of times a failing task is retried
5555
parser.add_argument('--rootinit-speedup', help=argparse.SUPPRESS, action='store_true') # enable init of ROOT environment vars to speedup init/startup
5656
parser.add_argument('--action-logfile', help='Logfilename for action logs. If none given, pipeline_action_#PID.log will be used')
5757
parser.add_argument('--metric-logfile', help='Logfilename for metric logs. If none given, pipeline_metric_#PID.log will be used')
@@ -796,10 +796,10 @@ def waitforany(self, process_list, finished, failingtasks):
796796
finished.append(tid)
797797
process_list.remove(p)
798798
if returncode != 0:
799-
print (str(tid) + ' failed ... checking retry')
799+
print (str(self.idtotask[tid]) + ' failed ... checking retry')
800800
# we inspect if this is something "unlucky" which could be resolved by a simple resubmit
801801
if self.is_worth_retrying(tid) and self.retry_counter[tid] < int(args.retry_on_failure):
802-
print (str(tid) + ' to be retried')
802+
print (str(self.idtotask[tid]) + ' to be retried')
803803
actionlogger.info ('Task ' + str(self.idtotask[tid]) + ' failed but marked to be retried ')
804804
self.tids_marked_toretry.append(tid)
805805
self.retry_counter[tid] += 1

0 commit comments

Comments
 (0)