From 9b4679d14bb19ccc7373d56c20631eea34d80a69 Mon Sep 17 00:00:00 2001 From: Stefano Belforte Date: Thu, 15 Aug 2024 10:58:15 +0200 Subject: [PATCH] add SUBMITREFUSED to task statuses to monitor. Fix #8620 (#8621) --- src/script/Monitor/GenerateMONIT.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/script/Monitor/GenerateMONIT.py b/src/script/Monitor/GenerateMONIT.py index 9e148e38fa..9e9637764b 100644 --- a/src/script/Monitor/GenerateMONIT.py +++ b/src/script/Monitor/GenerateMONIT.py @@ -1,5 +1,4 @@ -# pylint: disable=W0703 -from __future__ import print_function +# pylint: disable=broad-except import os import sys import time @@ -230,7 +229,7 @@ def execute(self): twStatus = self.getCountTasksByStatus() statesFilter = ['SUBMITTED', 'FAILED', 'QUEUED', 'NEW', 'KILLED', 'KILLFAILED', 'RESUBMITFAILED', - 'SUBMITFAILED', 'TAPERECALL'] + 'SUBMITFAILED', 'SUBMITREFUSED', 'TAPERECALL'] if len(twStatus) > 0: for state in twStatus.keys(): if state in statesFilter: @@ -240,7 +239,7 @@ def execute(self): twStatus = self.getCountTasksByStatusAbs() statesFilter = ['KILL', 'RESUBMIT', 'NEW', 'QUEUED', 'KILLFAILED', 'RESUBMITFAILED', 'SUBMITFAILED', - 'UPLOADED', 'TAPERECALL'] + 'SUBMITREFUSED', 'UPLOADED', 'TAPERECALL'] if len(twStatus) > 0: for state in statesFilter: self.jsonDoc['abs_task_states'].update({str(state): 0})