Skip to content

Commit

Permalink
add SUBMITREFUSED to task statuses to monitor. Fix #8620 (#8621)
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte authored Aug 15, 2024
1 parent 43208f8 commit 9b4679d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/script/Monitor/GenerateMONIT.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# pylint: disable=W0703
from __future__ import print_function
# pylint: disable=broad-except
import os
import sys
import time
Expand Down Expand Up @@ -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:
Expand All @@ -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})
Expand Down

0 comments on commit 9b4679d

Please sign in to comment.