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.
commandThe command that the scheduled job will run. This can be derived from the statement, statement, or generated by the system for jobs.

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