Scheduler

Contents

The scheduler is designed to schedule jobs dynamically. It is developed using the Spring Framework Quartz scheduler.

To use this scheduler effectively, the jobs (Quartz jobs) that should be scheduled must be created first. Then, these jobs can be added to the database, as all jobs to be scheduled are stored in the database.

When the scheduler starts, it reads the jobs to be scheduled or unscheduled from the database and schedules or removes them accordingly. Afterward, jobs can be added, updated, or removed dynamically using the Job scheduling user interface.

Note

The scheduler starts when the LibrePlan web application starts and stops when the application stops.

Note

This scheduler supports only cron expressions to schedule jobs.

The criteria that the scheduler uses to schedule or remove jobs when it starts are as follows:

For all jobs:

Note

Jobs cannot be rescheduled or unscheduled if they are currently running.

Job Scheduling List View

The Job scheduling list view allows users to:

Add or Edit Job

From the Job scheduling list view, click:

Both actions will open a create/edit job form. The form displays the following properties:

Cron Expression Pop-up

To enter the cron expression correctly, a cron expression pop-up form is used. In this form, you can enter the desired cron expression. See also the hint about the cron expression. If you enter an invalid cron expression, you will be notified immediately.

Remove Job

Click the Remove button to delete the job from both the database and the scheduler. The success or failure of this action will be displayed.

Start Job Manually

As an alternative to waiting for the job to run as scheduled, you can click this button to start the process directly. Afterward, the success or failure information will be displayed in a pop-up window.