job schedule interval create
Create a schedule that runs on an interval
Availability: This command is available to cluster administrators at the admin privilege level.
Description
The
job schedule interval create
creates an interval schedule.
An interval schedule runs jobs at specified intervals
after the previous job finishes.
For instance, if a job uses
an interval schedule of 12 hours
and takes 30 minutes to complete,
the job runs at the following times:
- Day one at 8:00 a.m. (the job's initial run)
- Day one at 8:30 p.m.
- Day two at 9:00 a.m.
- Day two at 9:30 p.m.
Each of the numerical parameters of the interval must be a whole number.
These parameters can be used individually,
or combined to define complex time values.
For example, use a value of 1 day, 12 hours
to create an interval of 1.5 days.
Large parameter values are converted into larger units.
For example, if you create a schedule with an interval of 36 hours,
the job schedule interval show command
will display it with an interval of 1 day 12 hours.
Parameters
-name <text> - Name
Use this parameter to specify
the name of the interval schedule
you want to create.
[-days <integer>] - Days
Use this parameter to specify
the "days" portion of the schedule's interval.
A day is one calendar day.
[-hours <integer>] - Hours
Use this parameter to specify
the "hours" portion of the schedule's interval.
[-minutes <integer>] - Minutes
Use this parameter to specify
the "minutes" portion of the schedule's interval.
[-seconds <integer>] - Seconds
Use this parameter to specify
the "seconds" portion of the schedule's interval.
Examples
The following example creates an interval schedule named rollingdaily that runs six hours after the completion of the previous occurrence of the job:
cluster1::> job schedule interval create -name rollingdaily -hours 6