Skip to main content
The SHOW SCHEDULES lists all of the currently active and . It also lists all of the currently active scheduled jobs for .

Required privileges

The following users can show a schedule:
  • Members of the . By default, the root user belongs to the admin role.
  • Owners of a backup schedule, i.e., the user that .
  • Owners of a changefeed schedule, i.e., the user that .

Synopsis

show_schedules syntax diagram

Parameters

ParameterDescription
schedule\_idThe ID of the schedule you want to view.

Response

The output of SHOW SCHEDULES is sorted by creation time. The following fields are returned for each schedule:
FieldDescription
idA unique ID to identify each schedule. This value is used if you want to control schedules (i.e., , , or it).
labelThe name used to identify the schedule, given at the time of schedule creation.
schedule\_statusThe schedule’s current status.
next\_runThe at which the next scheduled job is slated to run.
stateDisplays last-known errors or messages about the schedule. Cleared on retry of a scheduled job.
recurrenceHow often the scheduled job is run, which is set at the time of schedule creation.
jobsrunningThe number of currently running for the schedule.
ownerThe who created the schedule. Users with active schedules cannot be dropped.
createdThe when the job was created.
on\_previous\_runningThe status of the scheduled job if the previous backup is still running. This by default is set to WAIT.
on\_execution\_failureThe status of the scheduled job if an error occurs during the job execution. This by default is set to RETRY\_SCHED.
commandThe command that the scheduled job will run. This can be derived from the statement, statement, or generated by the system for jobs.
backup\_typeDisplays whether a scheduled backup job is or when running SHOW SCHEDULES FOR BACKUP.

Examples

Show schedules

To view the CREATE SCHEDULE statements for scheduled jobs, use .

Show running schedules

Show paused schedules

Show a specific schedule

To view a specific schedule, use the schedule’s id:

See also