Commit 479af87c authored by Andrew McNab's avatar Andrew McNab
Browse files

Suppress None values in $JOBFEATURES

parent 90ff0c49
......@@ -72,7 +72,7 @@ try:
except:
jobfeatures['allocated_cpu'] = 1
open(jobfeaturesDir + '/job_id', 'w').write(str(jobfeatures['allocated_cpu']))
open(jobfeaturesDir + '/allocated_cpu', 'w').write(str(jobfeatures['allocated_cpu']))
try:
hs06 = float(open('/etc/machinefeatures/hs06','r').readline())
......@@ -93,11 +93,6 @@ else:
jobstart_secs = int(time.time())
open(jobfeaturesDir + '/jobstart_secs', 'w').write(str(jobstart_secs))
jobfeatures['wall_limit_secs'] = None
jobfeatures['cpu_limits_secs'] = None
jobfeatures['max_rss_bytes'] = None
jobfeatures['max_swap_bytes'] = None
try:
qstatResult = os.popen('qstat -f ' + job_id,'r').read()
except:
......
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