> For the complete documentation index, see [llms.txt](https://docs.oxygenserv.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.oxygenserv.com/en/dashboard/planifier-une-nouvelle-tache.md).

# Schedule a new task

Step-by-step guide to schedule automatic tasks on your server (restart, backups, commands).

{% 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="https://2305008112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftkl0lsnxYxJPTz5fY4IW%2Fuploads%2Fgit-blob-43ff2353a4e3adbde3d0519cb72d70d598beee25%2Fimage_14.png?alt=media" 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="https://2305008112-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftkl0lsnxYxJPTz5fY4IW%2Fuploads%2Fgit-blob-4ad50f6bc716b69e72013d256d6b996adada8ce0%2Fimage_39.png?alt=media" 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.
