...
It has the following capabililties:
- Run a telephony task on a specified date and time by making an outbound call to a destination and starting the application configured on a service number (can be any application)
- Run a workflow task on a specified date and time by starting a background daemon process and running a workflow (GUI) application
- Reschedule the task on completion for a time in the future
- Retry the task if it fails to start or fails to complete
- Start an error task (as a background process) if the task exceeds the maximum number of tries before it completes
Scheduling can be based on the following:
...
Tasks can be passed parameters in JSON form, and an error task can be scheduled to run if the task does not complete. This enables several tasks to use the same service number configuration.
Rescheduling a task (if the task is configured as a repeating task) involves using the IVR / Workflow object Task Reschedule.
Configuration
The task scheduler can be configured via the menu item Routing ... Task Scheduler.
The following fields can be configured in a task:
Field | Specific to Task Type | Description |
---|---|---|
Name | The name of the task to be scheduled | |
Active | When set to checked (on), then the task is active. Only active tasks will be scheduled for running. | |
Type | The following types are supported:
| |
Destination | Telephony Application | This value is provided in the variable $caller, and is used as the number to dial in telephony processes. For background (workflow) applications, this is not used.for telephony processes. |
Service Number | Telephony Application | The service number to use when making the outbound call for telephony processes. |
Next Scheduled | The date and time on which the task will be next scheduled. This is also used as the base for calculating the task reschedule date and time when it has run and the reschedule object in the IVR or workflow is used. | |
Opening Times | If configured, the task will only be run during the setup opening times. This can be used, for example, to prevent a recurring task running at night. | |
Holiday List | If configured, the task will only be run when it is not a holiday as specified in the holiday list. This can be used, for example, to prevent a recurring task running on holidays. | |
Maximum Tries | When the task is run and it does not pass through a Task Reschedule object in the workflow or IVR application, it will be tried again after one minute has expired. If the maximum number of tries is then reached, the error |
Task Control
The task scheduler uses the following fields to control how tasks are scheduled:
...