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.

StatementDescription
CREATE JOBCreate a suspended SQL job.
ALTER JOBResume or suspend a schedule, or change a SQL job’s resource group.
DROP JOBDelete a SQL job’s schedule.
EXECUTE JOBTrigger a manual run and optionally wait for it to finish.

​
Find a job

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.

​
See also