# 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**](https://docs.midpointapi.com/midpoint-documentation/core-concepts/midpoints/source-and-task-definitions/extracts)**.** Legal values:

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

**`excludeLogs`: See** [**exclude logs**](https://docs.midpointapi.com/midpoint-documentation/core-concepts/midpoints/source-and-task-definitions/exclude-logs)**.** 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.
