> For the complete documentation index, see [llms.txt](https://docs.hablla.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hablla.com/hablla-docs-en/automation-flows/all-components/triggers-and-http/cron.md).

# Cron

### Overview

The **Cron** is a time-based system utility (*time-based job scheduler*) widely used in operating systems and automation platforms. Its main function is to allow tasks to be scheduled to run automatically, in the background, on specific dates, times, or time intervals. It works as a continuous time trigger that monitors the system clock to launch routines whenever the time criteria are met.

### Configuration Parameters

Configuring a traditional Cron schedule is done through a text string composed of **5 required fields**, separated by spaces. Each position represents a unit of time measurement:

Plaintext

```
 .---------------- minute (0 - 59)
 |  .------------- hour (0 - 23)
 |  |  .---------- day of month (1 - 31)
 |  |  |  .------- month (1 - 12)
 |  |  |  |  .---- day of week (0 - 6) (Sunday to Saturday)
 |  |  |  |  |
 * * * * *
```

* **Minutes (`0 - 59`):** The exact minute when the task will be executed.<br>
* **Hours (`0 - 23`):** The time of day in 24-hour format.<br>
* **Days (`1 - 31`):** The numeric day of the month.<br>
* **Months (`1 - 12` or `JAN-DEC`):** The month of the year in which the task should run.<br>
* **Days of the Week (`0 - 6` or `SUN-SAT`):** The specific day of the week (where `0` or `7` usually represent Sunday).<br>

### Visual Cron Builder

To abstract away the complexity of the textual syntax, modern interfaces use a visual builder based on dropdown menus that map Cron parameters:

* **Fixed Value Selectors:** Allow you to choose specific minutes, hours, or days (e.g., select only the minute `30` or only the month of `January`).<br>
* **Interval Selectors (Steps):** Make it easy to configure recurrences (e.g., choose to run every 5 minutes or every 3 months).<br>
* **Range Selectors (Ranges):** Allow you to visually define continuous periods, such as configuring an automation to run only from Monday to Friday.<br>

### Special Operators

Special operators are wildcard characters used to create advanced scheduling rules within Cron fields:

* **`*` (Asterisk) - Any value:** Indicates that the task should run in all units of that field (e.g., `*` in the hours field means "all hours").<br>
* **`,` (Comma) - List of values:** Allows you to define multiple explicit values in a single field (e.g., `1,15` in the days field runs on days 1 and 15).<br>
* **`-` (Hyphen) - Continuous range:** Defines an inclusive range of values (e.g., `1-5` in the days of the week field runs from Monday to Friday).<br>
* **`/` (Slash) - Steps / Increments:** Specifies the repeat rate within a field, combined with the asterisk (e.g., `*/15` in the minutes field means "every 15 minutes").<br>

### Practical Examples

Below are the most common scheduling patterns translated into Cron expressions:

| **Execution Frequency**                             | **Cron Expression** |
| --------------------------------------------------- | ------------------- |
| Run every minute, every day                         | `* * * * *`         |
| Run every 5 minutes                                 | `*/5 * * * *`       |
| Run at minute zero of every hour (hourly)           | `0 * * * *`         |
| Run once a day, exactly at midnight                 | `0 0 * * *`         |
| Run every day at 08:30 a.m.                         | `30 8 * * *`        |
| Run at noon, only Monday through Friday             | `0 12 * * 1-5`      |
| Run at midnight only on days 1 and 15 of each month | `0 0 1,15 * *`      |

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.hablla.com/hablla-docs-en/automation-flows/all-components/triggers-and-http/cron.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
