Skip to main content

Schedule

The Scheduler can be used to run a HTTP request, as define by the HTTP Trigger, on a regular basis, scheduled by a Cron Expression.

General

In the general tab the Cron Expression and some other general settings are managed.

General tab settings

  1. Active
  2. Cron Description
    • A short text describing the frequency of the Cron Expression.
    • This text is currently only editable via Raw tab. It might be generated, based on the Cron Expression in the future.
  3. Cron
  4. Path
    • Deprecated, not in use.
  5. Last Execution and Next Execution
    • This is only for your information and cannot be changed.
    • Last Execution shows when your Schedule was last triggered.
    • Next Execution shows when your Schedule will next be triggered based on the Cron Expression in Cron.
  6. Cron Type
    • There are multiple supported cron types:
    1. UNIX: Linux crontab. If you're not sure which one to use, this is the most common option.
    2. QUARTZ: Quartz Scheduler.
    3. CRON4J: cron4j Scheduler.
    4. SPRING: Spring Framework Cron Scheduler.

Save or discard changes

  1. Save your changes
  2. Discard your changes

HTTP Trigger

Define the HTTP request, which is triggered by the Cron defined in the general tab.

HTTP trigger settings

  1. Trigger now
    • Run HTTP request with current configuration.
  2. HTTP Method
    1. GET
    2. PUT
    3. POST
  3. URL
    • URL to send the HTTP request to.
  4. Payload
    • Payload of the HTTP request.
  5. Expected HTTP code
    • Expected HTTP response code for a successful HTTP request.
  6. Username
    • Username for basic auth.
  7. Password
    • Password for basic auth.
  8. User Agent
    • Specify a user agent to identify the HTTP request.
  9. Timeout
    • [] TODO add unit of measurement
  10. Headers
    • Define optional headers of the HTTP request.
  11. Cookies
    • Define optional cookies of the HTTP request.

Headers and Cookies

Headers and Cookies settings

  1. Create new header or enter edit mode
    • By clicking the green "+" you can add new headers.
    • By clicking the orange "pen" you can enter and exit the edit mode to modify headers.
  2. Name and value of header
    • Here you can specify the name and the value of the header.
    • You can delete the header by clicking the red "trashcan". After that the symbol changes to an orange "!". Click the orange "!" again to confirm the deletion.
    • Click, hold and drag the black navigation cross to change the order of the headers.
  3. Create new cookie or enter edit mode
    • By clicking the green "+" you can add new cookies.
    • By clicking the orange "pen" you can enter and exit the edit mode to modify cookies.
  4. Name and Value of cookie
    • Here you can specify the name and the value of the cookie.
    • You can delete the cookie by clicking the red "trashcan". After that the symbol changes to an orange "!". Click the orange "!" again to confirm the deletion.
    • Click, hold and drag the black navigation cross to change the order of the cookies.

Headers and Cookies overview

HTTP Response

The responses of the previous requests are shown in the list below. You can show details by clicking on the arrow on the left of the desired response.

Cron Expression

UNIX Style Cron Expressions

https://en.wikipedia.org/wiki/Cron

# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12)
# │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday;
# │ │ │ │ │ 7 is also Sunday on some systems)
# │ │ │ │ │
# │ │ │ │ │
# * * * * *

Common Examples

Cron Expressiondescription
* * * * *every minute
30 20 * * *every day at 20:30
30 20 1 * *once a month of the first day at 20:30

You can use this tool to evaluate your cron expression.