Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When you schedule web tasks using the WSO2 Task Server, the user will should simply provide a URL to the application a particular in which the 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:

  1. Log on in to the product’s management console and click Remote Tasks
  2. To schedule a new web task, click Add New Task to open the . The New Remote Task view :will open.
  3. Enter the details of the task and the schedule 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 requires (with a read timeout of 30 seconds).   Within this time,  Therefore, it is possible to configure the web task can be configured to execute another instance of the job within the same time period, 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 times 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.
  4. Click Schedule.