This topic explains how to configure rate limits for the workflow engine’s task workers.
Rate limiting parameters are set at the Platform instance level in environment variables, your .properties configuration file, or your profile document.
Primary rate limit control for task execution.
0 to disable completely.Defines the time window (in seconds) for the rate limit.
task_worker_rate_limit to define the execution rate.task_worker_rate_limit=100 with task_worker_rate_limit_period=1 = 100 tasks per second.In most cases, use the default period of one second unless you need to rate limit to slower than one task per second.
Rate limiting can be set at startup and adjusted at runtime through the workflow engine API.
At startup: Set in Platform-level environment variables, your .properties configuration file, or your profile document. Configuration loads when the workflow engine starts and persists across restarts.
At runtime: Adjust via the workflow engine HTTP API without a restart. Changes take effect immediately but are not persisted across restarts unless also updated in configuration files.
Choose rate limits based on system resource capacity (CPU, memory), typical workflow volumes and patterns, peak usage times, and downstream service capacity. Monitor your system under typical load and adjust based on observed performance.
Verify the configuration has been applied using one of these options:
Option 1: Check system logs
Open the workflow engine log files and look for entries confirming rate limit settings — for example, “Task rate limit enabled at X tasks per Y seconds.” Verify the logged values match your configuration.
Option 2: View in Admin Essentials
Navigate to Admin Essentials, select Configuration from the left sidebar, locate the task_worker_* configuration parameters, and verify the values match your configuration.
If values don’t match or no initialization messages appear, check configuration file syntax, verify the configuration is at the Platform level, ensure the Platform version is six or newer, and review system logs for configuration errors.
Use the runtime API to adjust rate limits immediately without restarting services. Changes take effect right away but are not persisted across restarts.
Runtime API changes override configuration file settings until Platform restart. After a restart, configuration loads from files.
Enable task rate limiting at 50 tasks per second:
Configure rate limiting for very slow task execution:
Result: one task per five seconds (0.2 tasks per second).
Task workers process tasks as quickly as possible without rate limiting.