Skip to content

Commit

Permalink
Fix STATE_QUEUE_ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
Icemole committed Jul 18, 2024
1 parent 01a0cd5 commit 0631454
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import sisyphus.global_settings as gs
from sisyphus.engine import EngineBase
from sisyphus.global_settings import STATE_RUNNING, STATE_UNKNOWN, STATE_QUEUE
from sisyphus.global_settings import STATE_RUNNING, STATE_UNKNOWN, STATE_QUEUE, STATE_QUEUE_ERROR

ENGINE_NAME = "slurm"
TaskInfo = namedtuple("TaskInfo", ["job_id", "task_id", "state"])
Expand Down Expand Up @@ -367,7 +367,7 @@ def task_state(self, task, task_id):
elif state in ["PENDING", "CONFIGURING"]:
return STATE_QUEUE
else:
return STATE_UNKNOWN
return STATE_QUEUE_ERROR

def start_engine(self):
"""No starting action required with the current implementation"""
Expand Down

0 comments on commit 0631454

Please sign in to comment.