Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Identify the slurm status CONFIGURING as running
Browse files Browse the repository at this point in the history
  • Loading branch information
joakim-hove authored and sondreso committed Jun 24, 2020
1 parent 1212b51 commit cb50810
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions lib/job_queue/slurm_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,13 @@ class SlurmStatus {
#define DEFAULT_SCONTROL_CMD "scontrol"
#define DEFAULT_SQUEUE_TIMEOUT 10

#define SLURM_PENDING_STATUS "PENDING"
#define SLURM_COMPLETED_STATUS "COMPLETED"
#define SLURM_RUNNING_STATUS "RUNNING"
#define SLURM_FAILED_STATUS "FAILED"
#define SLURM_CANCELED_STATUS "CANCELLED"
#define SLURM_COMPLETING_STATUS "COMPLETING"
#define SLURM_PENDING_STATUS "PENDING"
#define SLURM_COMPLETED_STATUS "COMPLETED"
#define SLURM_RUNNING_STATUS "RUNNING"
#define SLURM_FAILED_STATUS "FAILED"
#define SLURM_CANCELED_STATUS "CANCELLED"
#define SLURM_COMPLETING_STATUS "COMPLETING"
#define SLURM_CONFIGURING_STATUS "CONFIGURING"


struct slurm_driver_struct {
Expand Down Expand Up @@ -481,6 +482,9 @@ static job_status_type slurm_driver_translate_status(const std::string& status_s
if (status_string == SLURM_RUNNING_STATUS)
return JOB_QUEUE_RUNNING;

if (status_string == SLURM_CONFIGURING_STATUS)
return JOB_QUEUE_RUNNING;

if (status_string == SLURM_FAILED_STATUS)
return JOB_QUEUE_EXIT;

Expand Down

0 comments on commit cb50810

Please sign in to comment.