# Schedules

The Schedules tab allows you to set up start/stop and delete schedules for your database service.

### Start/Stop Schedule

To configure the Start/Stop schedule:

1. Click **Add** on the right side.\
   The **Create Schedule** dialog box appears with the following fields:
   * **Repeat** — Configure the repeat interval for your action. The available values are:
     * **Does not repeat** — The schedule runs only once for the configured date and time. Choose a start and stop day and time under **Duration**.
     * **Daily** — The schedule runs daily at the configured time. To configure the end repetition:
       * Select **Never** to run indefinitely.
       * Select **On** and choose a date to end the repetition on a specific date.
       * Select **After** and provide a number N to end after N occurrences.
       * Choose a start day and time under **Duration**.
     * **Weekly** — The schedule runs weekly on the configured day and time.
       * Select the days to run the action each week.
       * To configure the end repetition, select **Never**, or **On** with a date.
       * Choose a start day and time under **Duration**.
2. After providing all the details, click **Submit**.

The configured schedules are listed below the Start/Stop Schedule option. The following information is displayed:

* **Start date** — The configured start date for the schedule.
* **Duration** — The duration for which your database service is up and running.
* **Repeat** — The schedule frequency. The possible values are **Does not repeat**, **Daily**, and **Weekly**.

### Delete Schedule

To configure the delete schedule:

1. Click **Add** on the right side.\
   A window appears with the **Delete on** field to configure a date and time for deletion.
2. Click the calendar button to choose the date.
3. Click the clock button to choose the time.
4. Select whether to retain the Availability Machine.
   * Select **Yes** to delete only the service and retain the Availability Machine.
   * Select **No** to delete both the service and the Availability Machine.
5. Click **Submit**.

The configured delete schedule is displayed below the Delete Schedule option, showing the **Delete on** date and time, and whether the Availability Machine is to be retained.

### Refresh schedule

Any existing refresh schedules are displayed in the schedules section of the cloned service. The schedule can be updated, paused, or deleted through the ellipsis icon.

* If a database service is running another operation (patching, instance addition, parameter profile update, snapshot in progress, and so on), the database refresh is not triggered at the scheduled time and is marked as SKIPPED.
* If no recent snapshot is accessible to the schedule owner when the refresh is triggered, the database refresh is marked as SKIPPED.

As an alternative method, use the code to configure start/stop/delete schedules.

1. Click the **Code** button at the bottom-right corner to view the **Code for start/stop/delete schedule** window.
2. On the left-hand side, view the API, its type, and the payload.
3. On the right-hand side, view the code in Shell, Python, Go, Java, JavaScript, and PowerShell.
4. Use the copy and download buttons to save the code.
5. Click **Close** to return to the schedules window.

**Figure 1: Schedules tab**

![](/files/xyXF3dDj9XVEI23yhiGr)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tessell.com/tessell/tessell-for-postgresql/db-services/readme-postgresql/homepage-postgresql/schedules-postgresql.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
