aboutsummaryrefslogtreecommitdiff
path: root/slurm_job_states.rb
diff options
context:
space:
mode:
authorNat Lasseter <nat.lasseter@york.ac.uk>2021-01-07 13:55:59 +0000
committerNat Lasseter <nat.lasseter@york.ac.uk>2021-01-07 13:55:59 +0000
commit5ddf1c16dc7962790821bd61f0eb280d9929604b (patch)
treef9e8c2fea7e987faea5fe31b532bf99b92a2d84b /slurm_job_states.rb
parentc218b3ab2cecab7efafdb8f9f3f18cb725dc9634 (diff)
specify absolute path to slurm tools in raiders
Diffstat (limited to 'slurm_job_states.rb')
-rw-r--r--slurm_job_states.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/slurm_job_states.rb b/slurm_job_states.rb
index 2881d68..232df3c 100644
--- a/slurm_job_states.rb
+++ b/slurm_job_states.rb
@@ -8,7 +8,7 @@ class SlurmJobStates
start_time = (Time.now - @interval).strftime("%H:%M:%S")
# Get raw data from sacct and read jobs into an array
- raw = `sacct -a -P -o State,Partition -S #{start_time}`.lines
+ raw = `/usr/bin/sacct -a -P -o State,Partition -S #{start_time}`.lines
# remove any whitespace from the ends of each string
raw = raw.map(&:strip)
# drop the header line