> ## Documentation Index
> Fetch the complete documentation index at: https://docs.extractor.live/llms.txt
> Use this file to discover all available pages before exploring further.

# Cron

> The Cron detector schedules periodic tasks or event triggers — wallet top-ups, subscription payments, and contract job execution on a defined interval.

Simple periodic tasks or event trigger. Examples include wallet top-up, subscription payment, and contract job execution.

## Functionality

* Generates events on a cron schedule (Quartz syntax supported).
* Passes arbitrary data into optional scripts for execution.
* Emits alerts based on script results or errors.

## Configuration

<img src="https://mintcdn.com/hacken-38641811/tf4sXPSOl1ndZd5g/assets/DetectorCron-Config.png?fit=max&auto=format&n=tf4sXPSOl1ndZd5g&q=85&s=7996c3678f021d0e4e66534545ac1154" alt="DetectorCron Configuration" width="1359" height="1038" data-path="assets/DetectorCron-Config.png" />

* **Cron expression** (`cron`): Schedule for event generation. Supports Quartz syntax (e.g., `0 0/10 * 1/1 * ? *` or `10 min`).
* **Data** (`data`): Arbitrary input passed to scripts.
* **Scripts** (`script`): List of scripts to execute. Each script supports:
  * **Type** (`type`): `regexp`, `filter`, `sq`, `jq`, `js`, `ai`, `regexp_score`, `sq_score`, `jq_score`.
  * **Source** (`src`): Script source code.
  * **Options** (`options`): Script options.
* **Track Errors** (`track_err`): Whether to create alerts when scripts error.
* **Track Error (always)** (`err_always`): Always alert on error.
* **Description** (`desc`): Alert description template (default `{result}{err}`).
* **Severity** (`severity`): Alert severity (default `Auto`).
