WSO2 Task Server - Distribution

##### WSO2 Task Server

- Release Notes
- Home

##### Documentation

- Installation
- User Guide

##### Getting Help

- Mailing Lists
- Library

##### Project Information

- Issue Tracking
- License
- Checkout the Source

[Download] | [Documentation Home] | [Release Note]

## Scheduling User Web Tasks

The web tasks works in a way that, if you have any job to be executed in a periodic way, with a given criteria, the Task Server can be used as the entity which does the triggering. In registering a web task, the user will simply provide a URL, to which an HTTP GET request will be sent with each trigger event. So the target application which will be hit with the invocation of the target URL can execute the job that is expected to work according to the scheduling criteria.

The following steps show how to create an user web task.

- Navigate to "https://localhost:9443/", login with default admin credentials, admin/admin.
- Click "Remote Tasks" in the left side menu in the web console, followed by "Add New Task" option.

  Figure 1: Create New Remote Task

- Fill in the required fields, below contains an description of these fields:
  - Task Name: The name of the task to be scheduled
  - Target URL: This must be an HTTP/HTTPS URL, which is where the trigger event will be sent to
  - Allow Concurrent Execution: The connection made with the target URL will be retained until the target server keeps the connection open, and there is a read timeout of 30 seconds for this. The target server can choose to keep the connection alive until this time, and within this time, the task can be configured to execute another instance of the job overlapping an earlier run or not. If allow concurrent execution is set, overlapping scheduling will be enabled, if not, it will not execute concurrently.
  - Task Repeat Count: How many times the task should be repeatedly executed. For example, if the repeat count is given as 1, the totaly number of the task being executed will be 2. If the task needs to be executed only once, the task repeat count has to be 0.
  - Task Interval: If the "Task Repeat Count" is given, this setting must be given to provide the time interval in milliseconds the job executions will happen.
  - Cron Expression: The cron expression can be given rather than given Task Repeat Count and Task Interval in giving the scheduling criteria.
  - Start Time: The start time the task scheduling should happen.
  - End Time: The end time the task scheduling should stop.
- Click Schedule!