Scheduler

The Scheduler tab allows you to manage and schedule repeating tasks in ProVision.

Server time information is displayed at the top of the page, and active tasks are listed in the Task List module. For any task, you can view the run history, information details, run the task now, or delete. 

To enable the scheduler in a local instance, add the following to cron:
* * * * * /path/to/php /path/to/ProVision/scheduler/task-runner.php

Available Scheduler Task Types

Many predefined task types are available through the scheduler:

Add Task

To add a new scheduled task, hit the "Add Task" button on the right side of the Scheduler page header bar.

You will then see the Task Detail Settings area.


Enter Task Details

Under "Task Detail", fill in the following fields (fields may vary based on the selected task): 


Add Repeat Settings

Add repeat settings for your tasks. First, select your repeat type - hourly, daily, weekly, monthly, or none (one time). The type that you select will prompt different additional setting options.

Once you have selected the type, time, and day(s)/options, click "Add" to associate those settings with this task.

Repeat Type options and details:

For Monthly repeat settings, verify that the calendar day you select the task to occur exists! For example, if you select the 5th Saturday of each month, the task will repeat only in months which have 5 Saturdays and skip all other months.

Verify Repeat Settings and Save

When you add repeat settings, they will appear under the "Repeat Settings For This Task" area. Verify all selected settings, and if desired, you may delete individual repeat settings by hitting the "Delete" button. 

When complete, hit the "Save Task" button to finalize your changes and add your new task to the task list. 

Managing Tasks

After tasks have been added, they will show in the task list along with their basic settings. The list may be filtered to show all tasks or active tasks only by selecting the radio buttons next to "Show:". Further filtering may be done by typing a Name or Repeat Info keyword into the "Filter Tasks" input box above the task list.

From the task list itself, you can enable/disable tasks, view details, view history, run tasks, and delete tasks. 

Filters:

Task List:

Activate / Deactivate Tasks

Click on the check box under "Active" for the task

Edit a Task

Click on the "Details" link for the task, then edit the Task Detail and Repeat Settings that appear as needed. 

Hit "Save Task" when finished to save your changes, or select "Cancel" to close the view without saving.  

View Task Log

Click on the "View History" link for the task.

The log details for the task will be shown below. When done, click on the "Back" button to exit the view. 

Delete a Task

To delete a task, hit the "Delete" button at the end of the row in the Task List.

You will be presented with a confirmation message asking if you are sure you wish to delete the task.

Click on the "Remove" button to verify the deletion, or hit "Close" to exit without deleting.