> 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).

# Scheduler

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

Schedule jobs to run periodically based on various time intervals, such as daily, weekly, monthly, or custom intervals. It supports advanced configurations like start and end times, time zones, and immediate triggering.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Repeat (`scheduleType`) | select | Choose how often to repeat the task. |
| Days of Week (`daysOfWeek`) | multiselect | Choose the days of the week when this job should run. |
| Days of Month (`daysOfMonth`) | multiselect | Choose specific days of the month for scheduling. |
| Interval Unit (`customIntervalUnit`) | select | Select the time unit for the interval (e.g., minutes, hours, days, weeks). |
| Interval Value (`customIntervalValue`) | number | Set how many units between each run. Works with the selected Interval Unit. |
| Time (`time`) | text | Time of day in HH:mm format (e.g., 14:30). When not set, the job will run at the start of the day (00:00). |
| Trigger immediately (`immediate`) | toggle | Trigger once immediately when the flow starts, before the schedule begins. |
| Start (`start`) | date-time | Set a specific date and time to start the schedule. |
| End (`end`) | date-time | Set a specific date and time to stop the schedule. |
| Timezone (`timezone`) | select | Specify the timezone for scheduling (e.g., 'Europe/Prague') by default it is GMT. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Next Date GMT (`nextDateGMT`) | - | - |
| Next Date Localized (`nextDateLocal`) | - | - |
| Timezone (`timezone`) | - | - |
| Previous Date (`previousDate`) | - | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.timers.SchedulerTrigger",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Schedule jobs to run periodically based on various time intervals, such as daily, weekly, monthly, or custom intervals. It supports advanced configurations like start and end times, time zones, and immediate triggering.",
  "label": "Scheduler",
  "version": "1.1.1",
  "properties": {
    "source": {
      "url": "/component/appmixer/utils/timers/SchedulerTrigger?outPort=out",
      "data": {
        "properties": {
          "generateInspector": true,
          "scheduleType": "properties/scheduleType",
          "daysOfWeek": "properties/daysOfWeek",
          "daysOfMonth": "properties/daysOfMonth",
          "customIntervalUnit": "properties/customIntervalUnit",
          "customIntervalValue": "properties/customIntervalValue",
          "time": "properties/time",
          "start": "properties/start",
          "end": "properties/end",
          "timezone": "properties/timezone"
        }
      }
    },
    "schema": {
      "properties": {
        "scheduleType": {
          "type": "string"
        },
        "daysOfWeek": {
          "type": [
            "array",
            "string"
          ]
        },
        "daysOfMonth": {
          "type": [
            "array",
            "string"
          ]
        },
        "customIntervalUnit": {
          "type": "string"
        },
        "customIntervalValue": {
          "type": "integer"
        },
        "time": {
          "type": "string"
        },
        "immediate": {
          "type": "boolean"
        },
        "start": {
          "type": "string"
        },
        "end": {
          "type": "string"
        },
        "timezone": {
          "type": "string"
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "scheduleType": {
                "const": "days"
              }
            }
          },
          "then": {
            "required": [
              "scheduleType"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "scheduleType": {
                "const": "custom"
              }
            }
          },
          "then": {
            "required": [
              "scheduleType",
              "customIntervalUnit",
              "customIntervalValue"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "scheduleType": {
                "const": "weeks"
              }
            }
          },
          "then": {
            "required": [
              "scheduleType",
              "daysOfWeek"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "scheduleType": {
                "const": "months"
              }
            }
          },
          "then": {
            "required": [
              "scheduleType",
              "daysOfMonth"
            ]
          }
        }
      ]
    },
    "inspector": {
      "groups": {
        "advanced": {
          "label": "Advanced",
          "closed": true
        }
      },
      "inputs": {
        "scheduleType": {
          "group": "schedule",
          "type": "select",
          "index": 0,
          "label": "Repeat",
          "tooltip": "Choose how often to repeat the task.",
          "defaultValue": "custom",
          "options": [
            {
              "label": "Daily",
              "value": "days"
            },
            {
              "label": "Days of Week",
              "value": "weeks"
            },
            {
              "label": "Days of Month",
              "value": "months"
            },
            {
              "label": "Custom Interval",
              "value": "custom"
            }
          ]
        },
        "daysOfWeek": {
          "type": "multiselect",
          "label": "Days of Week",
          "tooltip": "Choose the days of the week when this job should run.",
          "options": [
            {
              "label": "Monday",
              "value": "monday"
            },
            {
              "label": "Tuesday",
              "value": "tuesday"
            },
            {
              "label": "Wednesday",
              "value": "wednesday"
            },
            {
              "label": "Thursday",
              "value": "thursday"
            },
            {
              "label": "Friday",
              "value": "friday"
            },
            {
              "label": "Saturday",
              "value": "saturday"
            },
            {
              "label": "Sunday",
              "value": "sunday"
            }
          ],
          "when": {
            "eq": {
              "./scheduleType": "weeks"
            }
          },
          "index": 1
        },
        "daysOfMonth": {
          "type": "multiselect",
          "label": "Days of Month",
          "tooltip": "Choose specific days of the month for scheduling.",
          "options": [
            "last day of the month",
            "1",
            "2",
            "3",
            "4",
            "5",
            "6",
            "7",
            "8",
            "9",
            "10",
            "11",
            "12",
            "13",
            "14",
            "15",
            "16",
            "17",
            "18",
            "19",
            "20",
            "21",
            "22",
            "23",
            "24",
            "25",
            "26",
            "27",
            "28"
          ],
          "when": {
            "eq": {
              "./scheduleType": "months"
            }
          },
          "index": 1
        },
        "customIntervalUnit": {
          "type": "select",
          "label": "Interval Unit",
          "tooltip": "Select the time unit for the interval (e.g., minutes, hours, days, weeks).",
          "options": [
            {
              "label": "Minutes",
              "value": "minutes"
            },
            {
              "label": "Hours",
              "value": "hours"
            },
            {
              "label": "Days",
              "value": "days"
            },
            {
              "label": "Weeks",
              "value": "weeks"
            }
          ],
          "when": {
            "eq": {
              "./scheduleType": "custom"
            }
          },
          "index": 1
        },
        "customIntervalValue": {
          "type": "number",
          "label": "Interval Value",
          "tooltip": "Set how many units between each run. Works with the selected Interval Unit.",
          "when": {
            "eq": {
              "./scheduleType": "custom"
            }
          },
          "min": 1,
          "index": 2
        },
        "time": {
          "type": "text",
          "label": "Time",
          "tooltip": "Time of day in HH:mm format (e.g., 14:30). When not set, the job will run at the start of the day (00:00).",
          "when": {
            "nin": {
              "./scheduleType": [
                "custom"
              ]
            }
          },
          "index": 2
        },
        "immediate": {
          "type": "toggle",
          "index": 10,
          "label": "Trigger immediately",
          "tooltip": "Trigger once immediately when the flow starts, before the schedule begins.",
          "group": "advanced",
          "defaultValue": false
        },
        "start": {
          "type": "date-time",
          "label": "Start",
          "tooltip": "Set a specific date and time to start the schedule.",
          "config": {
            "format": "YYYY-MM-DD HH:mm z"
          },
          "group": "advanced",
          "index": 11
        },
        "end": {
          "type": "date-time",
          "label": "End",
          "tooltip": "Set a specific date and time to stop the schedule.",
          "config": {
            "format": "YYYY-MM-DD HH:mm z"
          },
          "group": "advanced",
          "index": 12
        },
        "timezone": {
          "type": "select",
          "index": 13,
          "label": "Timezone",
          "tooltip": "Specify the timezone for scheduling (e.g., 'Europe/Prague') by default it is GMT.",
          "group": "advanced",
          "options": [
            {
              "label": "(GMT-11:00) Midway Island (Pacific/Midway)",
              "value": "Pacific/Midway"
            },
            {
              "label": "(GMT-11:00) Samoa (US/Samoa)",
              "value": "US/Samoa"
            },
            {
              "label": "(GMT-10:00) Hawaii (US/Hawaii)",
              "value": "US/Hawaii"
            },
            {
              "label": "(GMT-09:00) Alaska (US/Alaska)",
              "value": "US/Alaska"
            },
            {
              "label": "(GMT-08:00) Pacific Time (US & Canada) (US/Pacific)",
              "value": "US/Pacific"
            },
            {
              "label": "(GMT-08:00) Tijuana (America/Tijuana)",
              "value": "America/Tijuana"
            },
            {
              "label": "(GMT-07:00) Arizona (US/Arizona)",
              "value": "US/Arizona"
            },
            {
              "label": "(GMT-07:00) Mountain Time (US & Canada) (US/Mountain)",
              "value": "US/Mountain"
            },
            {
              "label": "(GMT-07:00) Chihuahua (America/Chihuahua)",
              "value": "America/Chihuahua"
            },
            {
              "label": "(GMT-07:00) Mazatlan (America/Mazatlan)",
              "value": "America/Mazatlan"
            },
            {
              "label": "(GMT-06:00) Mexico City (America/Mexico_City)",
              "value": "America/Mexico_City"
            },
            {
              "label": "(GMT-06:00) Monterrey (America/Monterrey)",
              "value": "America/Monterrey"
            },
            {
              "label": "(GMT-06:00) Saskatchewan (Canada/Saskatchewan)",
              "value": "Canada/Saskatchewan"
            },
            {
              "label": "(GMT-06:00) Central Time (US & Canada) (US/Central)",
              "value": "US/Central"
            },
            {
              "label": "(GMT-05:00) Eastern Time (US & Canada) (US/Eastern)",
              "value": "US/Eastern"
            },
            {
              "label": "(GMT-05:00) Indiana (East) (US/East-Indiana)",
              "value": "US/East-Indiana"
            },
            {
              "label": "(GMT-05:00) Bogota (America/Bogota)",
              "value": "America/Bogota"
            },
            {
              "label": "(GMT-05:00) Lima (America/Lima)",
              "value": "America/Lima"
            },
            {
              "label": "(GMT-04:30) Caracas (America/Caracas)",
              "value": "America/Caracas"
            },
            {
              "label": "(GMT-04:00) Atlantic Time (Canada) (Canada/Atlantic)",
              "value": "Canada/Atlantic"
            },
            {
              "label": "(GMT-04:00) La Paz (America/La_Paz)",
              "value": "America/La_Paz"
            },
            {
              "label": "(GMT-04:00) Santiago (America/Santiago)",
              "value": "America/Santiago"
            },
            {
              "label": "(GMT-03:30) Newfoundland (Canada/Newfoundland)",
              "value": "Canada/Newfoundland"
            },
            {
              "label": "(GMT-03:00) Buenos Aires (America/Buenos_Aires)",
              "value": "America/Buenos_Aires"
            },
            {
              "label": "(GMT-03:00) Greenland (America/Godthab)",
              "value": "America/Godthab"
            },
            {
              "label": "(GMT-02:00) Stanley (Atlantic/Stanley)",
              "value": "Atlantic/Stanley"
            },
            {
              "label": "(GMT-01:00) Azores (Atlantic/Azores)",
              "value": "Atlantic/Azores"
            },
            {
              "label": "(GMT-01:00) Cape Verde Is. (Atlantic/Cape_Verde)",
              "value": "Atlantic/Cape_Verde"
            },
            {
              "label": "(GMT) Casablanca (Africa/Casablanca)",
              "value": "Africa/Casablanca"
            },
            {
              "label": "(GMT) Dublin (Europe/Dublin)",
              "value": "Europe/Dublin"
            },
            {
              "label": "(GMT) Lisbon (Europe/Lisbon)",
              "value": "Europe/Lisbon"
            },
            {
              "label": "(GMT) London (Europe/London)",
              "value": "Europe/London"
            },
            {
              "label": "(GMT) Monrovia (Africa/Monrovia)",
              "value": "Africa/Monrovia"
            },
            {
              "label": "(GMT+01:00) Amsterdam (Europe/Amsterdam)",
              "value": "Europe/Amsterdam"
            },
            {
              "label": "(GMT+01:00) Belgrade (Europe/Belgrade)",
              "value": "Europe/Belgrade"
            },
            {
              "label": "(GMT+01:00) Berlin (Europe/Berlin)",
              "value": "Europe/Berlin"
            },
            {
              "label": "(GMT+01:00) Bratislava (Europe/Bratislava)",
              "value": "Europe/Bratislava"
            },
            {
              "label": "(GMT+01:00) Brussels (Europe/Brussels)",
              "value": "Europe/Brussels"
            },
            {
              "label": "(GMT+01:00) Budapest (Europe/Budapest)",
              "value": "Europe/Budapest"
            },
            {
              "label": "(GMT+01:00) Copenhagen (Europe/Copenhagen)",
              "value": "Europe/Copenhagen"
            },
            {
              "label": "(GMT+01:00) Ljubljana (Europe/Ljubljana)",
              "value": "Europe/Ljubljana"
            },
            {
              "label": "(GMT+01:00) Madrid (Europe/Madrid)",
              "value": "Europe/Madrid"
            },
            {
              "label": "(GMT+01:00) Paris (Europe/Paris)",
              "value": "Europe/Paris"
            },
            {
              "label": "(GMT+01:00) Prague (Europe/Prague)",
              "value": "Europe/Prague"
            },
            {
              "label": "(GMT+01:00) Rome (Europe/Rome)",
              "value": "Europe/Rome"
            },
            {
              "label": "(GMT+01:00) Sarajevo (Europe/Sarajevo)",
              "value": "Europe/Sarajevo"
            },
            {
              "label": "(GMT+01:00) Skopje (Europe/Skopje)",
              "value": "Europe/Skopje"
            },
            {
              "label": "(GMT+01:00) Stockholm (Europe/Stockholm)",
              "value": "Europe/Stockholm"
            },
            {
              "label": "(GMT+01:00) Vienna (Europe/Vienna)",
              "value": "Europe/Vienna"
            },
            {
              "label": "(GMT+01:00) Warsaw (Europe/Warsaw)",
              "value": "Europe/Warsaw"
            },
            {
              "label": "(GMT+01:00) Zagreb (Europe/Zagreb)",
              "value": "Europe/Zagreb"
            },
            {
              "label": "(GMT+02:00) Athens (Europe/Athens)",
              "value": "Europe/Athens"
            },
            {
              "label": "(GMT+02:00) Bucharest (Europe/Bucharest)",
              "value": "Europe/Bucharest"
            },
            {
              "label": "(GMT+02:00) Cairo (Africa/Cairo)",
              "value": "Africa/Cairo"
            },
            {
              "label": "(GMT+02:00) Harare (Africa/Harare)",
              "value": "Africa/Harare"
            },
            {
              "label": "(GMT+02:00) Helsinki (Europe/Helsinki)",
              "value": "Europe/Helsinki"
            },
            {
              "label": "(GMT+02:00) Istanbul (Europe/Istanbul)",
              "value": "Europe/Istanbul"
            },
            {
              "label": "(GMT+02:00) Jerusalem (Asia/Jerusalem)",
              "value": "Asia/Jerusalem"
            },
            {
              "label": "(GMT+02:00) Kyiv (Europe/Kiev)",
              "value": "Europe/Kiev"
            },
            {
              "label": "(GMT+02:00) Minsk (Europe/Minsk)",
              "value": "Europe/Minsk"
            },
            {
              "label": "(GMT+02:00) Riga (Europe/Riga)",
              "value": "Europe/Riga"
            },
            {
              "label": "(GMT+02:00) Sofia (Europe/Sofia)",
              "value": "Europe/Sofia"
            },
            {
              "label": "(GMT+02:00) Tallinn (Europe/Tallinn)",
              "value": "Europe/Tallinn"
            },
            {
              "label": "(GMT+02:00) Vilnius (Europe/Vilnius)",
              "value": "Europe/Vilnius"
            },
            {
              "label": "(GMT+03:00) Baghdad (Asia/Baghdad)",
              "value": "Asia/Baghdad"
            },
            {
              "label": "(GMT+03:00) Kuwait (Asia/Kuwait)",
              "value": "Asia/Kuwait"
            },
            {
              "label": "(GMT+03:00) Nairobi (Africa/Nairobi)",
              "value": "Africa/Nairobi"
            },
            {
              "label": "(GMT+03:00) Riyadh (Asia/Riyadh)",
              "value": "Asia/Riyadh"
            },
            {
              "label": "(GMT+03:00) Moscow (Europe/Moscow)",
              "value": "Europe/Moscow"
            },
            {
              "label": "(GMT+03:30) Tehran (Asia/Tehran)",
              "value": "Asia/Tehran"
            },
            {
              "label": "(GMT+04:00) Baku (Asia/Baku)",
              "value": "Asia/Baku"
            },
            {
              "label": "(GMT+04:00) Volgograd (Europe/Volgograd)",
              "value": "Europe/Volgograd"
            },
            {
              "label": "(GMT+04:00) Muscat (Asia/Muscat)",
              "value": "Asia/Muscat"
            },
            {
              "label": "(GMT+04:00) Tbilisi (Asia/Tbilisi)",
              "value": "Asia/Tbilisi"
            },
            {
              "label": "(GMT+04:00) Yerevan (Asia/Yerevan)",
              "value": "Asia/Yerevan"
            },
            {
              "label": "(GMT+04:30) Kabul (Asia/Kabul)",
              "value": "Asia/Kabul"
            },
            {
              "label": "(GMT+05:00) Karachi (Asia/Karachi)",
              "value": "Asia/Karachi"
            },
            {
              "label": "(GMT+05:00) Tashkent (Asia/Tashkent)",
              "value": "Asia/Tashkent"
            },
            {
              "label": "(GMT+05:30) Kolkata (Asia/Kolkata)",
              "value": "Asia/Kolkata"
            },
            {
              "label": "(GMT+05:45) Kathmandu (Asia/Kathmandu)",
              "value": "Asia/Kathmandu"
            },
            {
              "label": "(GMT+06:00) Ekaterinburg (Asia/Yekaterinburg)",
              "value": "Asia/Yekaterinburg"
            },
            {
              "label": "(GMT+06:00) Almaty (Asia/Almaty)",
              "value": "Asia/Almaty"
            },
            {
              "label": "(GMT+06:00) Dhaka (Asia/Dhaka)",
              "value": "Asia/Dhaka"
            },
            {
              "label": "(GMT+07:00) Novosibirsk (Asia/Novosibirsk)",
              "value": "Asia/Novosibirsk"
            },
            {
              "label": "(GMT+07:00) Bangkok (Asia/Bangkok)",
              "value": "Asia/Bangkok"
            },
            {
              "label": "(GMT+07:00) Jakarta (Asia/Jakarta)",
              "value": "Asia/Jakarta"
            },
            {
              "label": "(GMT+08:00) Krasnoyarsk (Asia/Krasnoyarsk)",
              "value": "Asia/Krasnoyarsk"
            },
            {
              "label": "(GMT+08:00) Chongqing (Asia/Chongqing)",
              "value": "Asia/Chongqing"
            },
            {
              "label": "(GMT+08:00) Hong Kong (Asia/Hong_Kong)",
              "value": "Asia/Hong_Kong"
            },
            {
              "label": "(GMT+08:00) Kuala Lumpur (Asia/Kuala_Lumpur)",
              "value": "Asia/Kuala_Lumpur"
            },
            {
              "label": "(GMT+08:00) Perth (Australia/Perth)",
              "value": "Australia/Perth"
            },
            {
              "label": "(GMT+08:00) Singapore (Asia/Singapore)",
              "value": "Asia/Singapore"
            },
            {
              "label": "(GMT+08:00) Taipei (Asia/Taipei)",
              "value": "Asia/Taipei"
            },
            {
              "label": "(GMT+08:00) Ulaan Bataar (Asia/Ulaanbaatar)",
              "value": "Asia/Ulaanbaatar"
            },
            {
              "label": "(GMT+08:00) Urumqi (Asia/Urumqi)",
              "value": "Asia/Urumqi"
            },
            {
              "label": "(GMT+09:00) Irkutsk (Asia/Irkutsk)",
              "value": "Asia/Irkutsk"
            },
            {
              "label": "(GMT+09:00) Seoul (Asia/Seoul)",
              "value": "Asia/Seoul"
            },
            {
              "label": "(GMT+09:00) Tokyo (Asia/Tokyo)",
              "value": "Asia/Tokyo"
            },
            {
              "label": "(GMT+09:30) Adelaide (Australia/Adelaide)",
              "value": "Australia/Adelaide"
            },
            {
              "label": "(GMT+09:30) Darwin (Australia/Darwin)",
              "value": "Australia/Darwin"
            },
            {
              "label": "(GMT+10:00) Yakutsk (Asia/Yakutsk)",
              "value": "Asia/Yakutsk"
            },
            {
              "label": "(GMT+10:00) Brisbane (Australia/Brisbane)",
              "value": "Australia/Brisbane"
            },
            {
              "label": "(GMT+10:00) Canberra (Australia/Canberra)",
              "value": "Australia/Canberra"
            },
            {
              "label": "(GMT+10:00) Guam (Pacific/Guam)",
              "value": "Pacific/Guam"
            },
            {
              "label": "(GMT+10:00) Hobart (Australia/Hobart)",
              "value": "Australia/Hobart"
            },
            {
              "label": "(GMT+10:00) Melbourne (Australia/Melbourne)",
              "value": "Australia/Melbourne"
            },
            {
              "label": "(GMT+10:00) Port Moresby (Pacific/Port_Moresby)",
              "value": "Pacific/Port_Moresby"
            },
            {
              "label": "(GMT+10:00) Sydney (Australia/Sydney)",
              "value": "Australia/Sydney"
            },
            {
              "label": "(GMT+11:00) Vladivostok (Asia/Vladivostok)",
              "value": "Asia/Vladivostok"
            },
            {
              "label": "(GMT+12:00) Magadan (Asia/Magadan)",
              "value": "Asia/Magadan"
            },
            {
              "label": "(GMT+12:00) Auckland (Pacific/Auckland)",
              "value": "Pacific/Auckland"
            },
            {
              "label": "(GMT+12:00) Fiji (Pacific/Fiji)",
              "value": "Pacific/Fiji"
            }
          ]
        }
      }
    }
  },
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Next Date GMT",
          "value": "nextDateGMT"
        },
        {
          "label": "Next Date Localized",
          "value": "nextDateLocal"
        },
        {
          "label": "Timezone",
          "value": "timezone"
        },
        {
          "label": "Previous Date",
          "value": "previousDate"
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
