Skip to content

HuLoop Scheduler Configuration Guide

1. Overview

The HuLoop Scheduler enables scheduled execution of different trigger types, including:

  • Workflow
  • Automation
  • IAB

The Scheduler uses a single executable file to manage all supported trigger types. It identifies the request type automatically and executes it based on the defined schedule.

The Scheduler is configured as part of the HuLoop Agent setup. This guide focuses specifically on configuring and managing scheduled execution.

Intended Audience

This guide is intended for:

  • Administrator Users: Responsible for configuring, running, and managing the Scheduler as a Windows service.
  • Other Users: Responsible for updating scheduling values such as HostApiUrl and RunSchedule.

Some sections of this guide are specific to Administrator users. These sections are clearly marked as Administrator Only.

2. How the Scheduler Works

The Scheduler reads settings from a configuration file located inside the Scheduler folder.

For each trigger type, the configuration file defines:

  • When the trigger runs (RunSchedule)
  • Which environment it connects to (HostApiUrl)
  • Which CLI executable to use (ExePath)
  • Where execution logs are stored (LogFilePath)

Each trigger type can have its own schedule and log location within the same file.

Download and Extract the HuLoop Agent

When you download the HuLoop Agent, you will receive a compressed file like: HuLoop.zip

Extract the contents of this ZIP file to a local folder. After extraction, open the main HuLoop folder.

Locate the Scheduler IPA Triggers Folder

Inside the extracted HuLoop folder, you will see:

  • HuLoopAgent.exe
  • Supporting files
  • Multiple subfolders

Locate and open the folder named:

SchedulerIPATriggers

schedulerIPATriggers

Open the Scheduler Folder

Inside the SchedulerIPATriggers folder, you will see three folders:

  • HuLoopCLI
  • Scheduler
  • Logs

Open the Scheduler folder.

open-scheduler-folder

Select Your System-Specific Folder

Inside the Scheduler folder, you will see a system-specific folder.

For example: win-x64

Note: The folder name may vary depending on your system type. Open the folder that matches your environment.

select-system-specific-folder

Open the Scheduler Configuration Files

Inside the system-specific folder (for example, win-x64), you will see the following files:

  • appsettings.json
  • HuLoop.Schedulers.IPATriggers.exe
  • HuLoop.Schedulers.IPATriggers.pbd

open-scheduler-config-files
The file appsettings.json is the configuration file where scheduling settings are defined.

Open appsettings.json in a text editor to configure scheduling.

scheduler-config-file
Scheduler Configuration and Executable Files

The file contains structured settings similar to the following:

{

“AppSettings”: {

“ApplicationName”: “HuLoop.Schedulers.IPATriggers”,

“Version”: “1.0.0”,

“SchedularId”: “”,

“Triggers”: [

{

“TriggerType”: “Workflow”,

“RunSchedule”: “0 0 0 0 5”,

“HostApiUrl”: “”,

“ExePath”: “..\\..\\HuloopCLI\\HuLoopCLI.exe”,

“LogFilePath”: “D:\\HuLoop\\HuloopSchedulerAssets\\Logs\\Workflow\\”

}

]

}

}

The configuration includes separate sections for:

  • Workflow
  • Automation
  • IAB

Each section can be configured independently.

Scheduler Configuration File Structure
Scheduler Configuration File Structure

Default Run Schedule Values

The Scheduler includes default RunSchedule values for each trigger type.

Trigger TypeDefault RunSchedule
Workflow0 0 0 0 5
Automation0 0 0 1 0
IAB0 0 0 0 10

The RunSchedule field defines when the trigger executes.

You can modify this value based on your scheduling requirements. Define the schedule frequency using the format “Month Week Day Hour Minute”.
Example: “RunSchedule”: “0 0 0 0 5” runs every 5 minutes.

3. Configure the Scheduler

Follow the steps below to configure scheduled execution.

Step 1: Update HostApiUrl

Locate the HostApiUrl field under each trigger type.

Provide the correct environment URL.

Example: “HostApiUrl”: “https://your-huloop-environment-url”

This ensures the Scheduler connects to the correct HuLoop environment.

Updating the HostApiUrl value
Updating the HostApiUrl value

Step 2: Modify RunSchedule (If Required)

Locate the RunSchedule field.

Update the value if you need to change when the trigger runs.

Each trigger type can have its own schedule.

Make sure the format is entered correctly. Incorrect formatting may prevent scheduled execution.

Note: Define the schedule frequency using the format “Month Week Day Hour Minute”.
Example: “RunSchedule”: “0 0 0 0 5” runs every 5 minutes.

Step 3: Verify ExePath

Ensure that the ExePath correctly points to the HuLoop CLI executable:

..\\..\\HuloopCLI\\HuLoopCLI.exe

This path must correctly reference the location where HuLoopCLI.exe is installed.

If the path is incorrect, scheduled execution will fail.

Step 4: Verify LogFilePath

Locate the LogFilePath for each trigger type and ensure the specified folder exists.

Example: D:\\HuLoop\\HuloopSchedulerAssets\\Logs\\Workflow\\

Note: If the folder does not exist, create it before running the Scheduler. Each trigger type can use a separate log folder.

Step 5: Save the Configuration

After completing all updates:

  1. Save the configuration file.
  2. Close the text editor.
  3. Restart the Scheduler if it is already running.

Your scheduled configuration is now active.

3A. Running the Scheduler

After configuring the Scheduler, the executable must be run to activate scheduled execution.

The execution method differs for Administrator users and normal users, as explained below:

3A.1 Administrator Only: Run as a Windows Service (Recommended)

When run as an Administrator, the Scheduler registers itself as a Windows service named:

HuLoop Scheduler Service

This allows the Scheduler to:

  • Run in the background
  • Start automatically after system restart
  • Continue execution without manual intervention

Important: Absolute Path RequirementWhen running as a Windows service:

  • ExePath must use a full absolute path
  • LogFilePath must use a full absolute path

Relative paths may not work in service mode.

Example: Absolute Path Configuration

“ExePath”: “C:\\HuLoop\\HuLoopCLI\\HuLoopCLI.exe”,
“LogFilePath”: “C:\\HuLoop\\Logs\\Workflow\\”

Note: The actual path may vary depending on where HuLoop is installed in your environment.

Step 1: Run the Executable as Administrator

  1. Navigate to the system-specific Scheduler folder.
  2. Right-click: HuLoop.Schedulers.IPATriggers.exe
  3. Select Run as administrator.
  4. Follow the on-screen instructions.

run-scheduler-as-admin
Step 2: Verify Service Registration

  1. Open Windows Services.
  2. Locate: HuLoop Scheduler Service

Step 3: Start the Service

  1. Right Click on HuLoop Scheduler Service.
  2. Click on Start. Wait till the service got Started

Step 4: Set Startup Type to Automatic

  1. Right-click the service
  2. Select Properties
  3. Set Startup Type to Automatic
  4. Click ApplyOK

This ensures the Scheduler starts automatically whenever the machine restarts.

3A.2 For Normal Users (Session-Based Execution)

If the executable is run without Administrator privileges:

  • The Scheduler runs only for the current session.
  • It does not register as a Windows service.
  • It stops when the user logs out or the machine restarts.

4. Verifying Scheduled Execution

To confirm that the Scheduler is working correctly:

  • Check the log folder for new log entries.
  • Verify execution status in the HuLoop dashboard.
  • Confirm that execution time aligns with the configured RunSchedule value.

If execution does not occur as expected, review the configuration values for accuracy.

5. Best Practices

  • Use separate log folders for each trigger type.
  • Always verify the CLI executable path after installation or upgrade.
  • Keep a backup of the configuration file before making changes.
  • Test scheduling in a non-production environment before deploying to production.

Back To Top