> For the complete documentation index, see [llms.txt](https://docs.midpointapi.com/midpoint-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.midpointapi.com/midpoint-documentation/sources/cron-job-triggered.md).

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