ALTER JOB resumes or suspends future scheduled runs. For a SQL job, you can also change the resource group for subsequent runs.

​
Syntax

ALTER JOB [ IF EXISTS ] <name>
  { RESUME | SUSPEND | SET RESOURCE_GROUP = '<resource_group>' };

​
Parameters

ParameterDescription
<name>SQL identifier of the job to alter.
IF EXISTSSucceeds and returns no rows if the named job is missing.
RESUMEEnables future scheduled runs.
SUSPENDPauses future scheduled runs. You can still run a SQL job manually.
SET RESOURCE_GROUPChanges the resource group for future runs of a SQL job.

​
Return values

The command returns one row describing the updated schedule with the columns of chalk.jobs.

​
Permissions

Altering a job requires cron.create in the environment. Altering a SQL job also requires workflow.manage.

​
Examples

Resume a suspended job.

ALTER JOB morning_report RESUME;

Change a SQL job’s resource group to analytics.

ALTER JOB morning_report SET RESOURCE_GROUP = 'analytics';

​
See also