# Schedulers

## Definition

Every Workload has its own schedule. Those schedules can be activated, deactivated and modified.

A schedule is defined by:

* Status (Enabled/Disabled)
* Start Day/Time
* End Day
* Hrs between 2 snapshots

## Disable a schedule

### Using Horizon

To disable the scheduler of a single Workload in Horizon do the following steps:

1. Login to the Horizon
2. Navigate to Backups
3. Navigate to Workloads
4. Identify the workload to be modified
5. Click the small arrow next to "Create Snapshot" to open the sub-menu
6. Click "Edit Workload"
7. Navigate to the tab "Schedule"
8. Uncheck "Enabled"
9. Click "Update"

### Using CLI

```
workloadmgr disable-scheduler --workloadids <workloadid>
```

* `--workloadid <workloadid>` :arrow\_right: Requires at least one workloadid, Specify an ID of the workload whose scheduler disables. Specify option multiple times to include multiple workloads. `--workloadids <workloadid> --workloadids <workloadid>`

## Enable a schedule

### Using Horizon

To disable the scheduler of a single Workload in Horizon do the following steps:

1. Login to the Horizon
2. Navigate to Backups
3. Navigate to Workloads
4. Identify the workload to be modified
5. Click the small arrow next to "Create Snapshot" to open the sub-menu
6. Click "Edit Workload"
7. Navigate to the tab "Schedule"
8. check "Enabled"
9. Click "Update"

### Using CLI

```
workloadmgr enable-scheduler --workloadids <workloadid>
```

* `--workloadid <workloadid>` :arrow\_right: Requires at least one workloadid, Specify an ID of the workload whose scheduler disables. Specify option multiple times to include multiple workloads. `--workloadids <workloadid> --workloadids <workloadid>`

## Modify a schedule

To modify a schedule the workload itself needs to be modified.

Please follow this procedure to [modify the workload](https://docs.trilio.io/openstack/workloads#edit-a-workload).

## Verify the scheduler trust is working

Trilio is using the [OpenStack Keystone Trust system](https://wiki.openstack.org/wiki/Keystone/Trusts) which enables the Trilio service user to act in the name of another OpenStack user.

This system is used during all backup and restore features.

### Using Horizon

As a trust is bound to a specific user for each Workload does the Trilio Horizon plugin show the status of the Scheduler on the Workload list page.

![Screenshot of an Workload with established scheduler trust](https://1827348953-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2ForlTBnmtYCfO7jjPr0BM%2Fuploads%2Fgit-blob-8b06aa99c3eb467bd6204337f263a56ac1f3b6b3%2Fimage%20\(17\).png?alt=media)

### Using CLI

```
workloadmgr scheduler-trust-validate <workload_id>
```

* `<workload_id>` :arrow\_right: ID of the workload to validate


---

# 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.trilio.io/openstack/user-guide/schedulers.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.
