# ALTER JOB
source: https://docs.chalk.ai/docs/chalksql/jobs/alter-job

## 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.

### Syntax

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

### Parameters

| Parameter            | Description                                                                                             |
| -------------------- | ------------------------------------------------------------------------------------------------------- |
| ``                   | 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](/docs/chalksql/jobs/execute-job).  |
| `SET RESOURCE_GROUP` | Changes the [resource group](/docs/chalksql/sql-explorer#resource-groups) 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.

```sql
ALTER JOB morning_report RESUME;
```

Change a SQL job's resource group to analytics.

```sql
ALTER JOB morning_report SET RESOURCE_GROUP = 'analytics';
```

### See also

- Job statements for job names and related commands
- CREATE JOB to define a SQL job




