# Paradime Bolt Schedule Toggle Commands

## Overview

Paradime Bolt introduces a powerful feature called Schedule Toggle Commands, which allows you to dynamically control the status of a Bolt Schedule. With this functionality, you can easily pause a schedule for a specific period of time or until the next day, providing flexibility and control over your data transformation processes.

<figure><img src="https://2337193041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHET0AD04uHMgdeLAjptq%2Fuploads%2F8XYWoMwEMZL4pbBtoeTi%2Fimage.png?alt=media&#x26;token=73e250f7-74ef-4d86-ad76-e97b80f17a6e" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}

#### Prerequisites <a href="#prerequisites" id="prerequisites"></a>

* Only UI based schedules can be pauses/unpaused using this commands
* Generate API credentials in your Paradime workspace with **Bolt schedules admin** Capabilities
* Use the generated credentials and set as [environment variables](https://docs.paradime.io/app-help/documentation/settings/environment-variables/bolt-schedule-env-variables) for Bolt Schedules

`PARADIME_API_ENDPOINT`

`PARADIME_API_SECRET`

`PARADIME_API_KEY`
{% endhint %}

### Pausing a Schedule

One of the key capabilities of Schedule Toggle Commands is the ability to pause a schedule. By issuing a pause command, you can temporarily suspend the execution of a Bolt Schedule. This is particularly useful when you need to halt the processing of data for a certain duration, such as during maintenance windows or when unexpected issues arise.

To pause a schedule, you can use the following command:

```bash
paradime bolt schedule suspend "hourly refresh"
```

{% hint style="info" %}
Use the variable `$PARADIME_SCHEDULE_NAME`  to let a Bolt schedule "pause iteslf".&#x20;
{% endhint %}

### Resuming a Schedule

Once a schedule is paused, you can resume its execution whenever needed. Resuming a schedule allows you to continue the data transformation process after a certain amount of time elapsed. To resume a paused schedule, you can use the following command:

```bash
paradime bolt schedule unsuspend "hourly refresh"
```

{% hint style="success" %}
Normally, the `suspend` and `unsuspend` commands will be part of two separate schedules.&#x20;

For example, you can have one schedule that runs the `suspend` command at a specific time or interval to pause the execution. This schedule can be configured to run at the desired frequency, such as daily or weekly, depending on your requirements.

On the other hand, you can have another schedule that runs the `unsuspend` command at a different time or interval to resume the execution of the suspended Bolt Schedule. This schedule can be set up to run at the appropriate time when you want the data transformation process to resume.
{% endhint %}

***

Now, let's learn how to configure the [Trigger Types](https://docs.paradime.io/app-help/documentation/bolt/creating-schedules/trigger-types) of a Bolt Schedule. &#x20;
