Interface TaskSpecRestartPolicy

Specification for the restart policy which applies to containers created as part of this service. TaskSpecRestartPolicy

interface TaskSpecRestartPolicy {
    Condition?: TaskSpecRestartPolicyConditionEnum;
    Delay?: number;
    MaxAttempts?: number;
    Window?: number;
}

Properties

Condition for restart.

Delay?: number

Delay between restart attempts.

MaxAttempts?: number

Maximum attempts to restart a given container before giving up (default value is 0, which is ignored).

Window?: number

Windows is the time window used to evaluate the restart policy (default value is 0, which is unbounded).