def my_ckpt(): print "About to checkpoint." dmtcp.checkpoint() print "Checkpoint done." if dmtcp.isResume(): print "The process is resuming from a checkpoint." else: print "The process is restarting from a previous checkpoint." return
def do_ckpt(): ''' Checkpoint, and then indicate if we are in the initial checkpoint or in a restarted version ''' print("About to checkpoint.") dmtcp.checkpoint() print("Checkpoint done.") if dmtcp.isResume(): print("The process is resuming from a checkpoint.") else: print("The process is restarting from a previous checkpoint.") return
def do_ckpt(): ''' Check point, and then indicate if we are in the initial checkpoint or in a restarted version ''' print "About to checkpoint." dmtcp.checkpoint() print "Checkpoint done." if dmtcp.isResume(): print "The process is resuming from a checkpoint." else: print "The process is restarting from a previous checkpoint." return