diff --git a/src/DIRAC/WorkloadManagementSystem/Client/JobStatus.py b/src/DIRAC/WorkloadManagementSystem/Client/JobStatus.py index 8a986b28d14..06a4a7b7086 100644 --- a/src/DIRAC/WorkloadManagementSystem/Client/JobStatus.py +++ b/src/DIRAC/WorkloadManagementSystem/Client/JobStatus.py @@ -21,6 +21,8 @@ #: STAGING = "Staging" #: +SCOUTING = "Scouting" +#: WAITING = "Waiting" #: MATCHED = "Matched" @@ -49,6 +51,7 @@ SUBMITTING, RECEIVED, CHECKING, + SCOUTING, STAGING, WAITING, MATCHED, @@ -92,9 +95,10 @@ def __init__(self, state): RESCHEDULED: State(6, [WAITING, RECEIVED, DELETED, FAILED], defState=RESCHEDULED), MATCHED: State(5, [RUNNING, FAILED, RESCHEDULED, KILLED], defState=MATCHED), WAITING: State(4, [MATCHED, RESCHEDULED, DELETED], defState=WAITING), - STAGING: State(3, [CHECKING, WAITING, FAILED, KILLED], defState=STAGING), - CHECKING: State(2, [STAGING, WAITING, RESCHEDULED, FAILED, DELETED], defState=CHECKING), - RECEIVED: State(1, [CHECKING, WAITING, FAILED, DELETED], defState=RECEIVED), + STAGING: State(3, [WAITING, FAILED, KILLED], defState=STAGING), + SCOUTING: State(2, [CHECKING, FAILED, STALLED, KILLED], defState=SCOUTING), + CHECKING: State(2, [SCOUTING, STAGING, WAITING, RESCHEDULED, FAILED, DELETED], defState=CHECKING), + RECEIVED: State(1, [SCOUTING, CHECKING, WAITING, FAILED, DELETED], defState=RECEIVED), SUBMITTING: State(0, [RECEIVED, CHECKING, DELETED], defState=SUBMITTING), # initial state }