# Cron Job Triggered

The Cron Job Triggered source is used to schedule midpoints that are called at regular time-intervals.

This source can be used to trigger a midpoint hourly, daily, weekly, or on more specific time definitions (ex. Noon on the first of every month). GMT is used as the originating time for the cron job triggered source.

## Definition

<pre class="language-graphql"><code class="lang-graphql">crontab: string # Required
<strong>extracts: [ 
</strong><strong>    {
</strong>        name: string
        from: string 
    }
]
excludeLogs: [string]
</code></pre>

**`crontab`: String.** A standard unix crontab. See [cron.help](https://cron.help/) for more information on crontabs.

**`extracts`: See** [**extracts**](/midpoint-documentation/core-concepts/midpoints/source-and-task-definitions/extracts.md)**.** Legal values:

* **`Timestamp`** Unixtime of execution
* **`Midpoint_ID`** See [Midpoint ID](/midpoint-documentation/core-concepts/midpoints/midpoint-id.md)
* **`Request_ID`** See [Request ID](/midpoint-documentation/core-concepts/requests/request-id.md)

**`excludeLogs`: See** [**exclude logs**](/midpoint-documentation/core-concepts/midpoints/source-and-task-definitions/exclude-logs.md)**.** Legal values:&#x20;

* **`TaskDefinition`** The complete definition of this task at runtime

## Returned Values

This source does not return any values other than those explicitly expressed in extracts.

## Examples

Start this midpoint every hour on the hour.

```json
crontab: "0 * * * *"
```

Start this midpoint every six hours and only on weekdays.

```
crontab: "* */6 * * Mon-Fri"
extracts: [ 
    {
        name: Request_ID
        from: Request_ID
    }
]
```

## Tips on Using Cron Job Triggered

This section is incomplete.


---

# 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.midpointapi.com/midpoint-documentation/sources/cron-job-triggered.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.
