> ## Documentation Index
> Fetch the complete documentation index at: https://docs.envzero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deployment scheduling

> Schedule automatic deploys and destroys for env zero environments using UNIX cron expressions, with options for recurring actions and TTL interaction.

## What is Scheduling?

Scheduling allows you to automatically trigger destroys and deploys of your environments on a scheduled basis.

Scheduling is configured based on cron expressions, and can be attached to an already deployed environment only.

> [!NOTE]
>
> **Scheduling vs TTL**
>
> Scheduling is an advanced feature that can't coexist with the simpler [TTL policy](https://docs.envzero.com/guides/policies-governance/policy-ttl.md) of your environment. Enabling scheduling for your environment will disable any existing TTL setting of your environment.
>
> It's also important to notice that TTL policies don't apply on any scheduled recurrences.

## Who Can Configure Scheduling

The minimum role for setting a scheduled action for an environment is [Project Deployer](https://docs.envzero.com/guides/admin-guide/user-role-and-team-management/user-management.md#project-roles).

## How To Configure Scheduling

After deploying your environment, click on **Settings** tab, on \*\*Environment Details \*\*page and scroll down to the **Scheduling** card.

![Environment scheduling configuration interface](https://mintcdn.com/envzero-b61043c8/SMkZGUXJ1AhEm5OR/images/guides/admin-guide/environments/environment_scheduling_configuration_interface.png?fit=max\&auto=format\&n=SMkZGUXJ1AhEm5OR\&q=85\&s=268dc1249ec68fdd7e7f21913724d409)

To configure scheduling for your environment:

1. Check the box for the required action (either *Deploy* or *Destroy*)
2. Input a valid [UNIX cron expression](http://www.nncron.ru/help/EN/working/cron-format.htm) (Optional Year suffix isn't supported).\
   <ins>For example:</ins> `0 23 * * MON-FRI` (UTC timezone)
3. Press **Save**.

The environment is now scheduled! You may notice that the environment's countdown indication has changed per your next schedule:

![Scheduled environment countdown display](https://mintcdn.com/envzero-b61043c8/SMkZGUXJ1AhEm5OR/images/guides/admin-guide/environments/scheduled_environment_countdown_display.png?fit=max\&auto=format\&n=SMkZGUXJ1AhEm5OR\&q=85\&s=f9a60a55a613abad19664e2a576ce8a8)

## Next steps

To pause scheduled deploys and destroys for a while, [lock the environment](https://docs.envzero.com/guides/admin-guide/environments/environment-locking.md). They resume once you release the lock.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.