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.
Task Selection Strategies
Task selection controls the order in which tasks are dequeued for processing. This is a global setting that applies to all task types.Available Strategies
FIFO (Default)
First-In-First-Out. Tasks are processed in the order they were queued.LIFO
Last-In-First-Out. Most recently queued tasks are processed first.Priority
Tasks with higher priority values are processed first. Tasks at the same priority level use FIFO ordering.Configuration
- Environment Variable
- CLI Flag
- Docker
Using Priority
When using thepriority strategy, queue tasks with a priority value (0-100):
Priority range is 0 (lowest) to 100 (highest). Default priority is 50 if not specified.
Comparison
| Strategy | Order | Use Case |
|---|---|---|
| FIFO | Oldest first | Fair processing, predictable |
| LIFO | Newest first | Cache locality, recent data |
| Priority | Highest priority first | Urgent tasks, SLAs |