Skip to content

Commit

Permalink
sweep: #7118 Introduce job status 'Scouting' in WMS
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni authored and web-flow committed Jul 25, 2023
1 parent 091bdba commit ed76a9c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/DIRAC/WorkloadManagementSystem/Client/JobStatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#:
STAGING = "Staging"
#:
SCOUTING = "Scouting"
#:
WAITING = "Waiting"
#:
MATCHED = "Matched"
Expand Down Expand Up @@ -43,6 +45,7 @@
SUBMITTING,
RECEIVED,
CHECKING,
SCOUTING,
STAGING,
WAITING,
MATCHED,
Expand Down Expand Up @@ -86,9 +89,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
}

Expand Down

0 comments on commit ed76a9c

Please sign in to comment.