Skip to main content

handlers.toml

Configure task handlers in handlers.toml. Each handler defines a Docker image and pool settings.

Basic Configuration

Handler Options

Examples

Minimal

Full Configuration

Multiple Handlers

Handler Selection Strategies

Cycles through containers sequentially for even distribution.
Best for: General workloads, stateless handlers
See Handler Selection Strategies for details.

Container Pooling

The instances setting controls how many containers are pre-warmed at startup:
Set instances based on expected concurrency. More instances = higher throughput but more memory usage.

Environment Variables

Pass environment variables to handler containers:

Memory Limits

Restrict container memory usage:

File Location

TaskDaemon looks for the config file in this order:
  1. --config CLI argument
  2. HANDLER_CONFIG environment variable
  3. handlers.toml in current directory
  4. /app/handlers.toml (Docker default)