Executor, Worker, Scheduler, Webserver, and Indexer Roles
For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append.mdto anykestra.io/docs/*URL for plain Markdown.
Kestra runs its work through a set of server components that can be deployed as a single process or as independent, separately scaled services.
Most components communicate through the Queue and read shared state from the Repository. Workers are the exception: they connect to a Worker Controller over gRPC (port 50051 by default) and never touch the queue or the database directly, so that port must be reachable from wherever Workers run. Workers are the components that run task code against your infrastructure. The Webserver is the only component that serves the API and UI, and it also reads and writes Internal Storage for file uploads, downloads, and webhook bodies.
Each section below summarizes one component and links to its page.
Executor
The Executor drives every execution from start to finish. It decides which task runs next, sends runnable tasks to Workers through the Worker Controller, runs flowable tasks itself, and applies concurrency limits, retries, pauses, SLAs, and kills. It also coordinates subflows, loops, and Flow triggers, and runs the cluster-wide liveness coordinator.
See Executor for how executions move forward and how to run the Executor in production.
Worker Controller
The Worker Controller is the single point that Workers talk to. It dispatches jobs to connected Workers over gRPC, receives their results, logs, and metrics, and relays kill signals and metadata changes. It runs embedded in the Webserver and the standalone server by default, or as its own kestra server controller process.
See Worker Controller for how Workers connect, how work is dispatched, and how to secure and scale the controller.
Worker
The Worker runs runnable tasks, polling triggers, and realtime triggers. A dedicated Worker connects to a Worker Controller, and every Executor and standalone process also runs a system Worker for platform maintenance tasks.
See Worker for how Workers receive and run work, shut down, and scale.
Looking for runtime status? The Instance – Services view shows live health for each component. See Instance – services.
Worker Group (EE)
In the Enterprise Edition, Worker Groups route tasks and triggers to specific Workers. A task or trigger declares a workerSelector, Kestra resolves it to a Worker Queue, and only Workers in groups that subscribe to that queue run the work. Groups also reserve capacity per queue.
See Worker Group for how routing, fallback, and capacity behave at runtime.
Scheduler
The Scheduler evaluates Schedule, polling, and realtime triggers and starts executions when they fire. Flow triggers are evaluated by the Executor, and webhook triggers by the Webserver.
See Scheduler for how triggers are evaluated, locked, and recovered, and how several Schedulers share the work.
Indexer
The Indexer writes logs, metrics, and execution statistics from the queue to the repository, plus audit logs and asset lineage in the Enterprise Edition. It is required with every backend, and runs embedded in the Webserver and the standalone server by default.
See Indexer for what the Indexer writes, what happens when it falls behind, and how to run it separately.
Webserver
The Webserver is the entry point for external communication with Kestra. It serves the User Interface (UI) and the REST API, streams live execution and log updates, and receives webhook calls. It sends execution actions to the Executor through the queue.
See Webserver for how requests are handled, how authentication works, and how to run the Webserver behind a load balancer.
Cluster liveness model
Every running server registers itself as a service and sends heartbeats at a fixed interval: Workers through the Worker Controller, other servers to the repository. The Executor runs the cluster-wide liveness coordinator: on a scheduled tick it reviews every registered service instance, moves servers that miss heartbeats to DISCONNECTED and then NOT_RUNNING, and resubmits a lost Worker’s jobs according to its restart strategy. Old service records are purged on a schedule to keep the registry bounded.
The same registry coordinates maintenance mode, which pauses the Executor and Scheduler and stops Workers from taking new jobs while the Webserver keeps serving.
See Server lifecycle for heartbeats, server states, and job resubmission, and High Availability for liveness thresholds and replica counts.
Component pages
Executor
Understand how the Kestra Executor drives each execution. Learn how it applies concurrency limits, retries, and SLAs, and how to run it in production.
Worker Controller
Understand how the Kestra Worker Controller dispatches jobs to Workers over gRPC. Learn how it balances load, secures connections, and scales.
Worker
Understand how the Kestra Worker runs tasks and triggers. Learn how it receives jobs, reports results, shuts down safely, and scales in production.
Worker Group
Understand how Kestra routes tasks and triggers to worker groups. Learn how selectors, fallbacks, and capacity reservations behave at runtime.
Scheduler
Understand how the Kestra Scheduler evaluates Schedule, polling, and realtime triggers. Learn how it locks triggers and recovers missed schedules.
Indexer
Understand what the Kestra Indexer writes and where it runs. Learn what happens when it falls behind and how to scale and monitor it.
Webserver
Understand how the Kestra Webserver serves the API, UI, live streams, and webhooks. Learn how it handles execution actions and how to run it.
Was this page helpful?