# Schedule a new task

{% hint style="info" %}
The **automatic tasks** are used to run actions at fixed times.\
Examples: daily restart, server command, scheduled maintenance.
{% endhint %}

### Objective

Create a **schedule** (days + times), then add **tasks** (actions).

### Step-by-step guide

{% stepper %}
{% step %}
**Create a schedule**

On the dashboard, click **Create a new schedule**.

<figure><img src="/files/60f708718b9be2f570817b97afa21cede4b8145c" alt=""><figcaption></figcaption></figure>

Fill in:

* **Name** (e.g. `Daily restart`)
* **Execution days** (e.g. every day, or Mon/Wed/Fri)
* **Execution time(s)**
* **Activation** (the schedule must be activated to run)

Then click **Create the schedule**.
{% endstep %}

{% step %}
**Add a task to the schedule**

On the schedule, click the menu **⋯** then **Add a task**.

<figure><img src="/files/4f293cd2a635fb5a10b815ad5a079fb6f76c8955" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Configure the task (action)**

Fill in:

* **Action** (e.g. restart, run a command)
* **Delay between tasks** (useful if you chain multiple actions)
* **Command** (if the action requires it)

Finish with **Create**.

{% hint style="info" %}
Good habit: start with a “test” schedule in 5 minutes.\
You can confirm the trigger before switching to daily.
{% endhint %}
{% endstep %}
{% endstepper %}

### Common issues

* **Nothing happens at the scheduled time** : check that the schedule is **enabled**.
* **Wrong time** : check the timezone used by your server and retest.
* **Task created but no effect** : confirm that the**action** chosen matches the need (restart vs command).

### FAQ

#### Can I put multiple tasks in a single schedule?

Yes. Add multiple tasks and use the **delay** to chain them properly.

#### What is the “delay between tasks” for?

To prevent two actions from starting at the same time.\
Example: backup → wait 60s → restart.

#### How do I modify or delete a schedule?

Open **Automatic tasks**, then use the menu **⋯** on the schedule.


---

# 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.oxygenserv.com/en/dashboard/planifier-une-nouvelle-tache.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.
