Chalk SQL
Find the Chalk SQL commands for creating, changing, deleting, and manually running scheduled jobs.
A SQL job runs one Chalk SQL statement asynchronously on a recurring schedule. Chalk stores SQL jobs in the environment across deployments. Some job statements also work with scheduled queries, resolvers, and aggregate backfills in the active deployment.
| Statement | Description |
|---|---|
CREATE JOB | Create a suspended SQL job. |
ALTER JOB | Resume or suspend a schedule, or change a SQL job’s resource group. |
DROP JOB | Delete a SQL job’s schedule. |
EXECUTE JOB | Trigger a manual run and optionally wait for it to finish. |
SELECT name, kind, schedule, state, created_at, resource_group
FROM chalk.jobs
WHERE name = 'morning_report';
Replace 'morning_report' with the job name to look up in
chalk.jobs.
Use that name as a SQL identifier in job commands. Double-quote names that contain punctuation,
such as "daily-rollup". If the name matches multiple jobs, the command returns an error.
In the syntax blocks, square brackets enclose optional clauses, braces enclose
alternatives separated by |, and angle brackets mark values you supply.