# Scheduling a Backend Task

The scheduling allows the activation of a function or workflow at designated times or intervals. It provides the flexibility to set input parameters, if needed, for the function or workflow. Additionally, it offers the capability to start or stop the scheduler. For creating a cron job, the instructions provided at the following link can be followed: <https://www.freeformatter.com/cron-expression-generator-quartz.html>

**Example:**

* Navigate to the "Schedules" tab, click on the three dots, and choose the "New Schedule" option.

<figure><img src="/files/XCbnoOnuCP0rfsjHYgRE" alt="" width="258"><figcaption></figcaption></figure>

* Enter the Scheduler name and click "OK."
* On the left side, choose the recently created scheduler. Provide the cron job, function/workflow name, and description.
* After adding the details, click on the Save icon located in the top right corner. Start the scheduler when you are ready.
* The function specified in form is executed as per the cron expression by passing the specified parameters.

<figure><img src="/files/pIbIb5pGakiCO69WmqcA" alt=""><figcaption></figcaption></figure>


---

# 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://trillo.gitbook.io/trillo-workbench/scheduling-a-backend-task.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.
