Chalk SQL
Resume or suspend a Chalk job schedule, or change the resource group for a SQL job.
ALTER JOB resumes or suspends future scheduled runs. For a SQL job, you can also
change the resource group for subsequent runs.
ALTER JOB [ IF EXISTS ] <name>
{ RESUME | SUSPEND | SET RESOURCE_GROUP = '<resource_group>' };
| Parameter | Description |
|---|---|
<name> | SQL identifier of the job to alter. |
IF EXISTS | Succeeds and returns no rows if the named job is missing. |
RESUME | Enables future scheduled runs. |
SUSPEND | Pauses future scheduled runs. You can still run a SQL job manually. |
SET RESOURCE_GROUP | Changes the resource group for future runs of a SQL job. |
The command returns one row describing the updated schedule with the columns of chalk.jobs.
Altering a job requires cron.create in the environment. Altering a SQL job also
requires workflow.manage.
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';
CREATE JOB to define a SQL job