Temporal

Task Queue Priority and Fairness: Your Task Queue, your way

May 12, 2026
Task Queue Priority and Fairness: Your Task Queue, your way
SummaryAI, from the source post

This post introduces and details the Generally Available features of Task Queue Priority and Fairness. It explains how Priority levels (1-5) can be assigned to Workflows, Activities, and Child Workflows to control execution order, with use cases including time-sensitive operations, SLA-based processing, emergency overrides, and AI agent workloads. It also describes Fairness, which uses 'Fairness Keys' and weighted round-robin to ensure equitable resource distribution among logical groups (e.g., tenants), preventing monopolization. The post provides code examples for assigning priority and fairness keys, explains how to enable these features in Temporal Cloud and self-hosted servers, and offers best practices for implementation and monitoring. It also notes that Fairness in Temporal Cloud incurs additional charges.

More from the Task Queue Priority and Fairness trail