Contents

  1. Introduction
  2. Creating your first schedule
  3. See the schedule running

Introduction

evQueue can also schedule tasks or workflows, like cron jobs. If you are familiar with cron jobs, you will see that this is essentially the same.

Creating your first schedule

Go to the menu Setting -> Scheduled workflows and click "Plan new workflow" ( icon).

Here you can plan an already existing workflow, or dynamically create one by providing a task path. We will choose the second option, which creates a workflow made of only one dynamic shell task, as shown in the previous sections.

Ih the 'what' section, choose script and type the name of the workflow that will be created and the script path. Optionally, you can add a group. For this example, we will show the system date by calling '/bin/date'.

In the 'when' section, you have 2 options. 'Daily' will trigger the workflow once a day at the specified time. 'Custom' will provied more flexibility with advanced schedules. We'll use this option.

We'll plan the workflow every 30s so it is easier to see its instances. The schedule should be like this:

Finally, we have to say what will happen if an execution fails. 'Continue' will launch a new instance at the next schedule. 'Suspend' will disable the schedule, and you will have to re-activate it manually.

Optionally, you can add a comment to the workflow.

You can then create the schedule with the 'Create workflow schedule' button.

See the schedule running

Now that you have a new workflow scheduled, you can go to the main System state -> Workflows instances screen.

Shortly you should see the first instances launched by the scheduler.

Watching the details of the 'date' task, you can see at what time the instances were created:

One thing to know is that the schedule is disabled when an instance is launched by the scheduler. This means that if you create a workflow that runs for 120 seconds and schedule it every minute, it will only be launched every 2 (or 3) minutes. Indeed, the next schedule date is calculated when the previous instance ends.