Kafka Connector 25.3
Kafka Connector Help

# 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`. Tasks scheduled to start at the same time run in the order that they are enumerated by the `N` parameter (in the `[FetchTasks]` section of the configuration file).
   `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]` section.

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

Related Topics

- Start and Stop the Connector

Copyright 2025 Open Text
Version 25.3 | Last updated July 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Kafka Connector 25.3

Topic Title: Schedule Fetch Tasks