Skip to main content

Scheduling

You can configure FA processes to run at specific times. The scheduling is done with Cron expressions.

Create, edit and remove schedules

To create and manage schedules, open Tools → Administer → Scheduled functions in the top menu. After selecting a scheduled process, you can see the Cron schedule specified for it. This means a regular execution time has been set for the process.

scheduled-monitoring-new.png

To add a new schedule:

  1. Click the Add button and fill in the fields:

    Cron schedule

    The process schedule specified using Cron syntax (see Cron schedules). The next execution time is shown when a valid Cron schedule is entered.

    Configuration

    The configuration used for the schedule.

    Saved views

    The saved view, if it’s relevant for the process you are scheduling. The saved view can be e.g. saved transaction view if you are scheduling a functionality that runs against a list of transactions.

  2. Click Save to save the schedules. Alternatively, you can click Remove to delete a schedule.

  3. Click the Run button to test your configurations. The functionality is run with the configuration set and saved view you specified.

Cron schedules

The schedules are specified in the Cron syntax. The basic principles are:

  • The schedules are specified in the following order, with space separating each component:

    • Seconds

    • Minutes

    • Hours

    • Day-of-month

    • Month

    • Day-of-week

    • Year (optional)

  • Asterisk ( * ) can be used to specify any value (for example, * as the Day-of-month component indicates that the schedule is run every day of the month).

  • Question mark (?) can be used in day-of-month and day-of-week fields to specify “no specific value”.

Some examples of different kinds of schedules:

  • Daily at 15:00:

    • 0 0 15 * * ?

    • On the first second of the first minute of the 15th hour, every day of month and every month, regardless of the day-of-week

  • Every Friday at 12:30:

    • 0 30 12 ? * FRI

  • Every weekday (Monday through Friday) at 08:10:20

    • 20 10 08 ? * MON-FRI

  • On the first day of every month at 21:00

    • 0 0 21 1 * ?