Skip to content

UpdatePolicy

Source code in docs_src/capo_batch/types/update_policy.py
class UpdatePolicy(TypedDict, closed=True):
    terminate_jobs_on_update: NotRequired["capo_batch.types.boolean.Boolean"]
    """<p>Specifies whether jobs are automatically terminated when the compute environment infrastructure is updated. The default value is <code>false</code>.</p>"""
    job_execution_timeout_minutes: NotRequired[
        "capo_batch.types.job_execution_timeout_minutes.JobExecutionTimeoutMinutes"
    ]
    """<p>Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default value is 30. The maximum value is 7200.</p> <note> <p>Increasing <code>jobExecutionTimeoutMinutes</code> during infrastructure updates delays the replacement of instances with new instances that include updates such as security patches, but provides more time for jobs to execute. Consider the security implications of this tradeoff when setting timeout values.</p> </note>"""

job_execution_timeout_minutes instance-attribute

job_execution_timeout_minutes: NotRequired[JobExecutionTimeoutMinutes]

Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default value is 30. The maximum value is 7200.

Increasing jobExecutionTimeoutMinutes during infrastructure updates delays the replacement of instances with new instances that include updates such as security patches, but provides more time for jobs to execute. Consider the security implications of this tradeoff when setting timeout values.

terminate_jobs_on_update instance-attribute

terminate_jobs_on_update: NotRequired[Boolean]

Specifies whether jobs are automatically terminated when the compute environment infrastructure is updated. The default value is false.