Skip to content
2 changes: 1 addition & 1 deletion batch_systems/slurm_client/slurm_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def status(self, external_job_id):
Returns:
tuple: (Ridgeback Status int, extra info)
"""
saact_command = ["sacct", f"--jobs={external_job_id}.batch", "--format=jobid,state,exitcode", "-n", "-P"]
saact_command = ["sacct", f"--jobs={external_job_id}", "--format=jobid,state,exitcode", "-n", "-P"]
self.logger.debug("Checking slurm status for job: %s", external_job_id)
process = subprocess.run(saact_command, check=True, stdout=subprocess.PIPE, universal_newlines=True)
status = self._parse_status(process.stdout, str(external_job_id))
Expand Down
8 changes: 4 additions & 4 deletions orchestrator/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def check_job_status(job):

if batch_system_status in (Status.RUNNING,):
command_processor.delay(Command(CommandType.CHECK_HANGING, str(job.id)).to_dict())
command_processor.delay(Command(CommandType.CHECK_COMMAND_LINE_STATUS, str(job.id)).to_dict())
# command_processor.delay(Command(CommandType.CHECK_COMMAND_LINE_STATUS, str(job.id)).to_dict())

elif batch_system_status in (Status.COMPLETED,):
submitter = JobSubmitterFactory.factory(
Expand All @@ -348,14 +348,14 @@ def check_job_status(job):
outputs, error_message = submitter.get_outputs()
if outputs:
_pipeline_completed(job, outputs)
command_processor.delay(Command(CommandType.CHECK_COMMAND_LINE_STATUS, str(job.id)).to_dict())
# command_processor.delay(Command(CommandType.CHECK_COMMAND_LINE_STATUS, str(job.id)).to_dict())
else:
_fail(job, error_message)
command_processor.delay(Command(CommandType.CHECK_COMMAND_LINE_STATUS, str(job.id)).to_dict())
# command_processor.delay(Command(CommandType.CHECK_COMMAND_LINE_STATUS, str(job.id)).to_dict())
elif batch_system_status in (Status.FAILED,):
_fail(job, batch_system_message)

command_processor.delay(Command(CommandType.CHECK_COMMAND_LINE_STATUS, str(job.id)).to_dict())
# command_processor.delay(Command(CommandType.CHECK_COMMAND_LINE_STATUS, str(job.id)).to_dict())
else:
raise StopException("Invalid transition %s to %s" % (Status(job.status).name, Status(batch_system_status).name))

Expand Down
2 changes: 1 addition & 1 deletion ridgeback/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.1.1"
__version__ = "2.1.3"
Loading