The connector automatically runs the fetch tasks that you have configured, based on the schedule in the configuration file. To modify the schedule, follow these steps.
To schedule fetch tasks
[Connector]
section.The EnableScheduleTasks
parameter specifies whether the connector should automatically run the fetch tasks that have been configured in the [FetchTasks]
section. To run the tasks, set this parameter to true
. For example:
[Connector] EnableScheduledTasks=True
In the [Connector]
section, set the following parameters:
ScheduleStartTime
|
The start time for the fetch task, the first time it runs after you start the connector. The connector runs subsequent synchronize cycles after the interval specified by Specify the start time in the format H[H][:MM][:SS]. To start running tasks as soon as the connector starts, do not set this parameter or use the value |
ScheduleRepeatSecs
|
The interval (in seconds) from the start of one scheduled synchronize cycle to the start of the next. If a previous synchronize cycle is still running when the interval elapses, the connector queues a maximum of one action. |
ScheduleCycles
|
The number of times that each fetch task is run. To run the tasks continuously until the connector is stopped, set this parameter to -1 . To run each task only one time, set this parameter to 1 . |
For example:
[Connector] EnableScheduledTasks=True ScheduleStartTime=15:00:00 ScheduleRepeatSecs=3600 ScheduleCycles=-1
(Optional) To run a specific fetch task on a different schedule, you can override these parameters in a TaskName section of the configuration file. For example:
[Connector] EnableScheduledTasks=TRUE ScheduleStartTime=15:00:00 ScheduleRepeatSecs=3600 ScheduleCycles=-1 ... [FetchTasks] Number=2 0=MyTask0 1=MyTask1 ... [MyTask1] ScheduleStartTime=16:00:00 ScheduleRepeatSecs=60 ScheduleCycles=-1
In this example, MyTask0
follows the schedule defined in the [Connector]
section, and MyTask1
follows the scheduled defined in the [MyTask1]
TaskName section.
|