Package io.quarkus.kubernetes.deployment
Class CronJobConfig
- java.lang.Object
-
- io.quarkus.kubernetes.deployment.CronJobConfig
-
public class CronJobConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Optional<Long>activeDeadlineSecondsSpecifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer.(package private) Optional<Integer>backoffLimitSpecifies the number of retries before marking this job failed.(package private) io.dekorate.kubernetes.annotation.JobCompletionModecompletionModeCompletionMode specifies how Pod completions are tracked.(package private) Optional<Integer>completionsSpecifies the desired number of successfully finished pods the job should be run with.(package private) io.dekorate.kubernetes.annotation.CronJobConcurrencyPolicyconcurrencyPolicyConcurrencyPolicy describes how the job will be handled.(package private) Optional<Integer>failedJobsHistoryLimitThe number of failed finished jobs to retain.(package private) Optional<Integer>parallelismSpecifies the maximum desired number of pods the job should run at any given time.(package private) io.dekorate.kubernetes.annotation.JobRestartPolicyrestartPolicyRestart policy when the job container fails.(package private) Optional<String>scheduleThe schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.(package private) Optional<Long>startingDeadlineSecondsDeadline in seconds for starting the job if it misses scheduled time for any reason.(package private) Optional<Integer>successfulJobsHistoryLimitThe number of successful finished jobs to retain.(package private) booleansuspendSuspend specifies whether the Job controller should create Pods or not.(package private) Optional<Integer>ttlSecondsAfterFinishedLimits the lifetime of a Job that has finished execution (either Complete or Failed).
-
Constructor Summary
Constructors Constructor Description CronJobConfig()
-
-
-
Field Detail
-
schedule
@ConfigItem Optional<String> schedule
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
-
concurrencyPolicy
@ConfigItem(defaultValue="Allow") io.dekorate.kubernetes.annotation.CronJobConcurrencyPolicy concurrencyPolicy
ConcurrencyPolicy describes how the job will be handled.
-
startingDeadlineSeconds
@ConfigItem Optional<Long> startingDeadlineSeconds
Deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.
-
failedJobsHistoryLimit
Optional<Integer> failedJobsHistoryLimit
The number of failed finished jobs to retain. The default value is 1.
-
successfulJobsHistoryLimit
Optional<Integer> successfulJobsHistoryLimit
The number of successful finished jobs to retain. The default value is 3.
-
parallelism
@ConfigItem Optional<Integer> parallelism
Specifies the maximum desired number of pods the job should run at any given time.
-
completions
@ConfigItem Optional<Integer> completions
Specifies the desired number of successfully finished pods the job should be run with.
-
completionMode
@ConfigItem(defaultValue="NonIndexed") io.dekorate.kubernetes.annotation.JobCompletionMode completionMode
CompletionMode specifies how Pod completions are tracked.
-
backoffLimit
@ConfigItem Optional<Integer> backoffLimit
Specifies the number of retries before marking this job failed.
-
activeDeadlineSeconds
@ConfigItem Optional<Long> activeDeadlineSeconds
Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer.
-
ttlSecondsAfterFinished
@ConfigItem Optional<Integer> ttlSecondsAfterFinished
Limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted.
-
suspend
@ConfigItem(defaultValue="false") boolean suspend
Suspend specifies whether the Job controller should create Pods or not.
-
restartPolicy
@ConfigItem(defaultValue="OnFailure") io.dekorate.kubernetes.annotation.JobRestartPolicy restartPolicy
Restart policy when the job container fails.
-
-