Documentation Index
Fetch the complete documentation index at: https://taskdaemon.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Environment Variables
Configure TaskDaemon via environment variables.Available Variables
| Variable | Default | Description |
|---|---|---|
HANDLER_CONFIG | handlers.toml | Path to handler configuration file |
DAEMON_PORT | 8080 | HTTP server port |
DAEMON_GRPC_PORT | 50051 | gRPC server port |
DAEMON_WORKERS | 2 | Number of worker threads |
DAEMON_DB_PATH | /tmp/task_queue.db | SQLite database path |
DAEMON_DB_MAX_CONNECTIONS | 20 | SQLite connection pool size |
DAEMON_QUEUE_TYPE | sqlite | Queue type: sqlite or hybrid |
DAEMON_TASK_SELECTION | fifo | Task selection: fifo, lifo, priority |
DAEMON_LOG_LEVEL | info | Log level (trace, debug, info, warn, error) |
DAEMON_HOST | 0.0.0.0 | HTTP server bind address |
DAEMON_MAX_RETRIES | 3 | Maximum retry attempts for failed tasks |
DAEMON_TASK_TIMEOUT | 30 | Default task timeout in seconds |
Queue Types
- sqlite
- hybrid
Standard SQLite-backed queue. Durable but slightly slower under high load.
Task Selection
| Value | Description |
|---|---|
fifo | First-In-First-Out (default) |
lifo | Last-In-First-Out |
priority | Highest priority first |
Usage
Docker
Docker Compose
Shell
CLI Arguments
CLI arguments override environment variables:| CLI Flag | Environment Variable |
|---|---|
--workers | DAEMON_WORKERS |
--http-port | DAEMON_PORT |
--grpc-port | DAEMON_GRPC_PORT |
--db-path | DAEMON_DB_PATH |
--log-level | DAEMON_LOG_LEVEL |
--task-selection | DAEMON_TASK_SELECTION |
--config | HANDLER_CONFIG |
Precedence
Configuration is applied in this order (later overrides earlier):- Default values
- Environment variables
- CLI arguments
Performance Tuning
For high-throughput workloads:Set
DAEMON_WORKERS to roughly match the total number of handler instances across all handlers for optimal utilization.Log Levels
| Level | Description |
|---|---|
trace | Very detailed debugging |
debug | Debugging information |
info | General operational info |
warn | Warning messages |
error | Error messages only |