> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Cron Scheduler

- Component: `appmixer.utils.timers.Scheduler`
- Kind: Trigger
- Version: 1.1.1
- Visibility: Public
- Connector: [appmixer.utils.timers 1.5.3](https://connectors.appmixer.com/connector/appmixer.utils.timers/1.5.3.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.utils.timers/1.5.3/component/appmixer.utils.timers.Scheduler>

This trigger schedules jobs to run periodically at fixed times, dates, or intervals using cron syntax.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Trigger immediately (`immediate`) | toggle | Set this to true if you want to trigger this component as soon as the flow starts |
| Minute (`minute`) | text | Allowed values are *, -, /, 0-59, , |
| Hour (`hour`) | text | Allowed values are *, -, /, 0-23, , |
| Day of the Month (`dayMonth`) | text | Allowed values are *, -, /, 1-31, , |
| Day of the Week (`dayWeek`) | text | Allowed values are *, -, /, 0-6, SUN-SAT, , |
| Timezone (`timezone`) | text | Specify the timezone for scheduling (e.g., 'Europe/Prague') by default it is GMT |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Now (`now`) | - | - |
| Previous Date (`previousDate`) | - | - |
| Next Date (`nextDate`) | - | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.timers.Scheduler",
  "author": "Appmixer <info@appmixer.com>",
  "description": "This trigger schedules jobs to run periodically at fixed times, dates, or intervals using cron syntax.",
  "label": "Cron Scheduler",
  "version": "1.1.1",
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "properties": {
          "previousDate": {
            "type": "string",
            "format": "date-time"
          },
          "now": {
            "type": "string",
            "format": "date-time"
          },
          "nextDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "lastTick",
          "elapsed",
          "now"
        ]
      },
      "options": [
        {
          "label": "Now",
          "value": "now"
        },
        {
          "label": "Previous Date",
          "value": "previousDate"
        },
        {
          "label": "Next Date",
          "value": "nextDate"
        }
      ]
    }
  ],
  "properties": {
    "schema": {
      "properties": {
        "minute": {
          "type": "string"
        },
        "hour": {
          "type": "string"
        },
        "dayMonth": {
          "type": "string"
        },
        "dayWeek": {
          "type": "string"
        },
        "immediate": {
          "type": "boolean"
        },
        "timezone": {
          "type": "string"
        }
      },
      "required": [
        "minute",
        "hour",
        "dayMonth",
        "dayWeek"
      ]
    },
    "inspector": {
      "inputs": {
        "immediate": {
          "type": "toggle",
          "index": 1,
          "label": "Trigger immediately",
          "tooltip": "Set this to true if you want to trigger this component as soon as the flow starts",
          "defaultValue": true
        },
        "minute": {
          "type": "text",
          "index": 2,
          "label": "Minute",
          "tooltip": "Allowed values are *, -, /, 0-59, ,"
        },
        "hour": {
          "type": "text",
          "label": "Hour",
          "index": 3,
          "tooltip": "Allowed values are *, -, /, 0-23, ,"
        },
        "dayMonth": {
          "type": "text",
          "index": 4,
          "label": "Day of the Month",
          "tooltip": "Allowed values are *, -, /, 1-31, ,"
        },
        "dayWeek": {
          "type": "text",
          "index": 5,
          "label": "Day of the Week",
          "tooltip": "Allowed values are *, -, /, 0-6, SUN-SAT, ,"
        },
        "timezone": {
          "type": "text",
          "index": 6,
          "label": "Timezone",
          "tooltip": "Specify the timezone for scheduling (e.g., 'Europe/Prague') by default it is GMT",
          "source": {
            "url": "/component/appmixer/utils/timers/ListTimeZones?outPort=out",
            "data": {
              "properties": {
                "sendWholeArray": true
              },
              "transform": "./ListTimeZones#timezonesToSelectArray"
            }
          }
        }
      }
    }
  },
  "icon": "(data URI omitted)"
}
```
