When you schedule web tasks using the WSO2 Task Server, the user will simply provide a URL to the application a particular job corresponding to the web task needs to be implemented. With every trigger event in the Task Server, an HTTP GET request will be sent to this URL from the Task Server so that the target application can execute the job according to the scheduling criteria.
Follow the instructions given below to schedule a web task on the WSO2 Task Server:
- Log on to the product’s management console and click …….
- Enter the details of the task and the criteria for the task schedule in the relevant fields as shown below.
Task Name: The name of the task that you want to schedule.
Target URL: The HTTP/HTTPS URL to which the trigger event should be sent. Allow Concurrent Execution: When an event is triggered, the target URL will retain the connection for as long as the target server chooses to keep the connection open (with a read timeout of 30 seconds). Within this time, the web task can be configured to execute another instance of the job, regardless of whether the earlier instance was completed. If you want to allow such overlapping of task schedules, enable the concurrent execution setting.
Task Repeat Count: The number of time the task execution should be repeated. For example, if the repeat count is 1, the total number of tasks executed will be 2. If task needs to be executed only once, the task repeat count should be set to 0.
Task Interval: Gives the time interval separating the task executions. This is only applicable if the task repeat count is larger than 0.
Cron Expression: Instead of specifying values for the task repeat count and task interval, the same setting can be specified using a cron expression.
Start Time: The time at which the task scheduling should begin.
End Time: The time at which the task scheduling should stop. - Click Schedule.