Task Spec Restart Policy
@Serializable
Specification for the restart policy which applies to containers created as part of this service.
Parameters
condition
Condition for restart.
delay
Delay between restart attempts.
max Attempts
Maximum attempts to restart a given container before giving up (default value is 0, which is ignored).
window
Windows is the time window used to evaluate the restart policy (default value is 0, which is unbounded).
Constructors
Link copied to clipboard
constructor(condition: TaskSpecRestartPolicy.Condition? = null, delay: Long? = null, maxAttempts: Long? = 0, window: Long? = 0)