Open topic with navigation

# Schedule Fetch Tasks

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

1. Stop the connector.
2. Open the connector’s configuration file in a text editor.
3. Find the `[Connector]` section.

4. 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

5. 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 `ScheduleRepeatSecs`. 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 `now`.
   `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

6. (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.

7. Save and close the configuration file. You can now start the connector.

Related Topics

- Start and Stop the Connector

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm