Versions Compared

Key

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

...

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. The New Remote Task view will open.
  3. Enter the details of the task and the schedule criteria 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 requires (with a read timeout of 30 seconds).  Therefore, it is possible to configure the web task 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 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.

...