Exemplo n.º 1
0
#!/usr/bin/env python

import pyslurm

try:
	time = pyslurm.slurm_checkpoint_able(2,0)
except ValueError as e:
        print 'Checkpointable job failed - %s' % (e)
else:
	print "Job can be checkpointed at %" % time
Exemplo n.º 2
0
#!/usr/bin/env python

import pyslurm

rc, Time = pyslurm.slurm_checkpoint_able(6,0,0)
if rc != 0:
	print "Error : %s" % pyslurm.slurm_strerror(rc)
else:
	print "Job can be checkpointed"

Exemplo n.º 3
0
#!/usr/bin/env python
"""
Retrieve a jobs checkpoint status
"""
from __future__ import print_function

import pyslurm

try:
    time = pyslurm.slurm_checkpoint_able(2, 0)
except ValueError as value_error:
    print("Checkpointable job failed - {0}".format(value_error.args[0]))
else:
    print("Job can be checkpointed at {0}".format(time))