Commit a0dc3d42 authored by fwinkler's avatar fwinkler

Added account and job name in redis script.

parent 506897fd
......@@ -110,7 +110,7 @@ def save_job_env(env_file, slurm_env, connection, debug_file):
# get selected job information
if slurm_env:
exclusive = str(slurm_env['JOB_RECORD__WHOLE_NODE'])
exclusive = int(slurm_env['JOB_RECORD__WHOLE_NODE'])
#determine number of CPUs (hardware threads)
num_cpus = int(slurm_env['JOB_RECORD__CPU_CNT'])
......@@ -123,10 +123,10 @@ def save_job_env(env_file, slurm_env, connection, debug_file):
#remove last comma from string
cpu_allocated = cpu_allocated[:-1]
# try:
# job_name = str(slurm_env['name'])
# except:
# job_name = 'corrupt'
try:
job_name = str(slurm_env['JOB_RECORD__JOB_NAME'])
except:
job_name = 'corrupt'
try:
walltime = slurm_env['JOB_RECORD__TIME_LIMIT']
......@@ -137,7 +137,7 @@ def save_job_env(env_file, slurm_env, connection, debug_file):
walltime *= 60
#determine account
#account = str(slurm_env['account'])
account = str(slurm_env['JOB_RECORD__ACCOUNT'])
if env_file:
f = open(env_file,'w')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment