Interface JobProps

    • Method Detail

      • getActiveDeadline

        @Stability(Stable)
        @Nullable
        default org.cdk8s.Duration getActiveDeadline()
        Specifies the duration the job may be active before the system tries to terminate it.

        Default: - If unset, then there is no deadline.

      • getBackoffLimit

        @Stability(Stable)
        @Nullable
        default Number getBackoffLimit()
        Specifies the number of retries before marking this job failed.

        Default: - If not set, system defaults to 6.

      • getTtlAfterFinished

        @Stability(Stable)
        @Nullable
        default org.cdk8s.Duration getTtlAfterFinished()
        Limits the lifetime of a Job that has finished execution (either Complete or Failed).

        If this field is set, after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature.

        Default: - If this field is unset, the Job won't be automatically deleted.