---
title: Scheduled Rollouts
description: >-
  Learn how to schedule a targeting rule to start automatically at a future date
  and time.
breadcrumbs: Docs > Feature Flags > Concepts > Scheduled Rollouts
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Scheduled Rollouts

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ({% placeholder "user-datadog-site-name" /%}).
{% /alert %}

{% /callout %}

## Overview{% #overview %}

Instead of activating a targeting rule immediately, you can schedule it to start automatically at a future date and time. This is available for both [feature gates](https://docs.datadoghq.com/feature_flags/concepts/targeting_rules.md#targeting-rule-types) and [progressive rollouts](https://docs.datadoghq.com/feature_flags/concepts/targeting_rules.md#targeting-rule-types).

A feature gate normally starts as soon as you save it. A [progressive rollout](https://docs.datadoghq.com/feature_flags/use_cases/progressive_rollouts.md#start-and-control-the-rollout) normally requires you to click **Start Rollout** to begin. When you schedule a start time on either rule type instead, it activates automatically at that time.

The flag still needs to be enabled in the environment for the rule to take effect once it starts. If the flag is already enabled, no further action is required.

## Schedule a rollout start{% #schedule-a-rollout-start %}

To schedule a start time for a targeting rule:

1. Navigate to **Feature Flags** and select your flag.
1. Select the environment whose rule you want to modify.
1. Click **Add Targeting Rule** (or click the targeting rule you want to modify).
1. Select **Schedule a start time**.
1. Choose a date and time for the rule to begin. The picker defaults to the next full hour, and past dates and times cannot be selected.
1. Click **Save**.

{% image
   source="https://docs.dd-static.net/images/feature_flags/concepts/schedule-a-rollout-start.f600ba3717a6a4feade07319867c2843.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/feature_flags/concepts/schedule-a-rollout-start.f600ba3717a6a4feade07319867c2843.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Targeting Rule editor side panel on a feature flag with a scheduled start." /%}

{% alert level="info" %}
If the flag is disabled in the environment, the rule does not run. Enable the flag before the scheduled rollout for it to take effect.
{% /alert %}

## Change or cancel a scheduled start{% #change-or-cancel-a-scheduled-start %}

You can reschedule to a new time, or uncheck **Schedule a start time** to cancel it, at any time before the scheduled start.

## Edit a rollout that has already started or completed{% #edit-a-rollout-that-has-already-started-or-completed %}

After a rollout starts, you cannot edit the targeting rule while it's running. To make changes, stop the rollout first, then edit the rule.

After a rollout completes, you cannot make any changes to it.

A [feature gate](https://docs.datadoghq.com/feature_flags/concepts/targeting_rules.md#targeting-rule-types) without a schedule starts as soon as you save it, so you cannot add a schedule to it afterward.

## Approve a rollout whose start time has passed{% #approve-a-rollout-whose-start-time-has-passed %}

If a scheduled rule change requires [approval](https://docs.datadoghq.com/feature_flags/concepts/approvals.md), the rollout does not start automatically while the change is still pending. If the scheduled start time passes before a reviewer approves it, the rollout does not start. See [Approve, reject, or apply](https://docs.datadoghq.com/feature_flags/concepts/approvals.md#approve-reject-or-apply) for details.

## Further reading{% #further-reading %}

Additional helpful documentation, links, and articles:

- [Targeting Rules and Filters](https://docs.datadoghq.com/feature_flags/concepts/targeting_rules.md)
- [Feature Flags Approvals](https://docs.datadoghq.com/feature_flags/concepts/approvals.md)
- [Feature Flag History](https://docs.datadoghq.com/feature_flags/concepts/flag_history.md)
