submitit/core/job_environment.py
def _checkpoint(delayed: DelayedSubmission, filepath: Path, countdown: int) -> str:
    """Call the checkpoint method and dump the updated delayed.

    Returns:
    --------
        no_requeue_reason: str
            a string explaining while there was no requeuing, else empty string if requeuing works
    """
    logger.get_logger().info("Calling checkpoint method.")
    ckpt_delayed = delayed._checkpoint_function()
    if ckpt_delayed is None:
        return "checkpoint function returned None"
    ckpt_delayed.timeout_countdown = countdown
    with utils.temporary_save_path(filepath) as tmp:
        ckpt_delayed.dump(tmp)
    return ""
Call the checkpoint method and dump the updated delayed.

    Returns:
    --------
        no_requeue_reason: str
            a string explaining while there was no requeuing, else empty string if requeuing works
    
Call the checkpoint method and dump the updated delayed.
Call the checkpoint method and dump the updated delayed .
def _checkpoint(delayed: DelayedSubmission, filepath: Path, countdown: int) -> str:
    logger.get_logger().info("Calling checkpoint method.")
    ckpt_delayed = delayed._checkpoint_function()
    if ckpt_delayed is None:
        return "checkpoint function returned None"
    ckpt_delayed.timeout_countdown = countdown
    with utils.temporary_save_path(filepath) as tmp:
        ckpt_delayed.dump(tmp)
    return ""
def _checkpoint ( delayed : DelayedSubmission , filepath : Path , countdown : int ) -> str : logger . get_logger ( ) . info ( "Calling checkpoint method." ) ckpt_delayed = delayed . _checkpoint_function ( ) if ckpt_delayed is None : return "checkpoint function returned None" ckpt_delayed . timeout_countdown = countdown with utils . temporary_save_path ( filepath ) as tmp : ckpt_delayed . dump ( tmp ) return ""
Call the checkpoint method and dump the updated delayed.
Call the checkpoint method and dump the updated delayed .
"""Call the checkpoint method and dump the updated delayed.

    Returns:
    --------
        no_requeue_reason: str
            a string explaining while there was no requeuing, else empty string if requeuing works
    """
str
a string explaining while there was no requeuing, else empty string if requeuing works
str a string explaining while there was no requeuing else empty string if requeuing works
no_requeue_reason
delayed
DelayedSubmission
filepath
Path
countdown
int