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:

    ScheduleCycles The number of times that each fetchtask 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.
    ScheduleRepeatSecs The interval (in seconds) that must elapse before a task is run again.
    ScheduleStartTime The start time of the first task in the format H[H][:MM][:SS]

    For example:

    [Connector]
    EnableScheduledTasks=True
    ScheduleCycles=-1
    ScheduleRepeatSecs=3600
    ScheduleStartTime=15:00:00
  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
    ScheduleCycles=-1
    ScheduleRepeatSecs=3600
    ScheduleStartTime=15:00:00
    ...
    		
    [FetchTasks]
    Number=2
    0=MyTask0
    1=MyTask1
    ...
    	
    [MyTask1]
    ScheduleCycles=-1
    ScheduleRepeatSecs=60
    ScheduleStartTime=16:00:00

    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.

_HP_HTML5_bannerTitle.htm