Skip to content

Commit

Permalink
Use STATE_RUNNABLE instead of STATE_QUEUE_ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
Icemole committed Aug 19, 2024
1 parent 0d5ea83 commit ccd7756
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions sisyphus/aws_batch_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

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

ENGINE_NAME = "aws"
TaskInfo = namedtuple("TaskInfo", ["job_id", "task_id", "state"])
Expand Down Expand Up @@ -225,7 +225,7 @@ def task_state(self, task, task_id):
try:
queue_state = self.queue_state()
except subprocess.CalledProcessError:
return STATE_QUEUE_ERROR
return STATE_RUNNABLE
qs = queue_state.get(task_name)

# task name should be uniq
Expand Down
4 changes: 2 additions & 2 deletions sisyphus/load_sharing_facility_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

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

ENGINE_NAME = "lsf"
TaskInfo = namedtuple("TaskInfo", ["job_id", "task_id", "state"])
Expand Down Expand Up @@ -295,7 +295,7 @@ def task_state(self, task, task_id):
try:
queue_state = self.queue_state()
except subprocess.CalledProcessError:
return STATE_QUEUE_ERROR
return STATE_RUNNABLE
qs = queue_state[task_name]

# task name should be uniq
Expand Down
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, STATE_QUEUE_ERROR
from sisyphus.global_settings import STATE_RUNNABLE, STATE_RUNNING, STATE_UNKNOWN, STATE_QUEUE, STATE_QUEUE_ERROR

ENGINE_NAME = "slurm"
TaskInfo = namedtuple("TaskInfo", ["job_id", "task_id", "state"])
Expand Down Expand Up @@ -353,7 +353,7 @@ def task_state(self, task, task_id):
try:
queue_state = self.queue_state()
except subprocess.CalledProcessError:
return STATE_QUEUE_ERROR
return STATE_RUNNABLE
qs = queue_state[task_name]

# task name should be uniq
Expand Down
4 changes: 2 additions & 2 deletions sisyphus/son_of_grid_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

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

ENGINE_NAME = "sge"
TaskInfo = namedtuple("TaskInfo", ["job_id", "task_id", "state"])
Expand Down Expand Up @@ -419,7 +419,7 @@ def task_state(self, task, task_id):
try:
queue_state = self.queue_state()
except subprocess.CalledProcessError:
return STATE_QUEUE_ERROR
return STATE_RUNNABLE
qs = queue_state[task_name]

# task name should be uniq
Expand Down

0 comments on commit ccd7756

Please sign in to comment.