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.

The scheduling manager window has two panes:

image-20210614-065716.png

From the left pane you can select the process for which you want to create or modify the schedule. The right pane allows you to change the schedules on the selected functionality.

Note

Only the functionalities where you have access to are shown on the left panel.

To view the existing schedules, select a process that has a schedule specified (the Next Run column shows the time) in the left pane:

image-20210614-070152.png

To add a schedule, click the Add button. The schedules are specified with Cron syntax (see Cron schedules). The Save button saves all schedules of a process.

The next execution time is shown after the schedule (if a valid cron schedule is entered). The Configuration dropdown lets you select the configuration used for this schedule. The list of configurations is dependent on your access rights. The Saved views for dropdown lets you select a 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.

The Remove button removes the schedule. The Run button lets you test the configuration; with it the functionality is run with the configuration set and saved view that are 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 * ?