RESUME JOB

The RESUME JOB statement lets you resume pausedIMPORT jobs, enterprise BACKUP and RESTORE jobs, and changefeeds.

Note:
You cannot pause schema changes.

Required privileges

By default, only the root user can control a job.

Synopsis

RESUMEJOBjob_idJOBSselect_stmt

Parameters

ParameterDescription
job_idThe ID of the job you want to resume, which can be found with SHOW JOBS.
select_stmtA selection query that returns job_id(s) to resume.

Examples

Pause a job

  1. > SHOW JOBS;
  1. +----------------+---------+-------------------------------------------+...
  2. | id | type | description |...
  3. +----------------+---------+-------------------------------------------+...
  4. | 27536791415282 | RESTORE | RESTORE db.* FROM 'azure://backup/db/tbl' |...
  5. +----------------+---------+-------------------------------------------+...
  1. > PAUSE JOB 27536791415282;

Resume a single job

  1. > RESUME JOB 27536791415282;

Resume multiple jobs

To resume multiple jobs, nest a SELECT clause that retrieves job_id(s) inside the RESUME JOBS statement:

  1. > RESUME JOBS (SELECT job_id FROM [SHOW JOBS]
  2. WHERE user_name = 'maxroach');

All jobs created by maxroach will be resumed.

See also

Was this page helpful?
YesNo