Changeset 851 for branches/1.0/jobmond/jobmond.py
- Timestamp:
- 05/13/13 21:17:20 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/jobmond/jobmond.py
r837 r851 70 70 71 71 print detail 72 usage( )72 usage( False ) 73 73 sys.exit( 1 ) 74 74 … … 1333 1333 1334 1334 start_timestamp = self.getAttr( attrs, 'start_time' ) 1335 nodes = attrs[ 'alloc_node' ].split(',') 1336 1337 nodeslist = do_nodelist( nodes ) 1335 nodes = attrs[ 'nodes' ] 1336 1337 if not nodes: 1338 1339 # This should not happen 1340 1341 # Something wrong: running but 'nodes' returned empty by pyslurm 1342 # Possible pyslurm bug: abort/quit/warning 1343 1344 err_msg = 'FATAL ERROR: job %s running but nodes returned empty: pyslurm bugged?' %job_id 1345 1346 print err_msg 1347 debug_msg( 0, err_msg ) 1348 sys.exit(1) 1349 1350 my_nodelist = [ ] 1351 1352 slurm_hostlist = pyslurm.hostlist() 1353 slurm_hostlist.create( nodes ) 1354 slurm_hostlist.uniq() 1355 1356 while slurm_hostlist.count() > 0: 1357 1358 my_nodelist.append( slurm_hostlist.pop() ) 1359 1360 slurm_hostlist.destroy() 1361 1362 del slurm_hostlist 1363 1364 nodeslist = do_nodelist( my_nodelist ) 1338 1365 1339 1366 if DETECT_TIME_DIFFS:
Note: See TracChangeset
for help on using the changeset viewer.