Worker Orchestration¶
xcore integrates with Celery to handle background tasks, scheduled jobs, and asynchronous processing.
Overview¶
The worker command group allows you to manage the lifecycle of your background processing fleet.
Key Commands¶
start: Launch a Celery worker.beat: Start the periodic task scheduler.inspect: Check worker health and registered tasks.purge: Clear all messages from a queue.process: Fine-grained process management sub-app.
Managing Workers¶
Start a Worker¶
By default, worker start launches a Celery worker. API server management has moved to manager start.
| Start Celery | |
|---|---|
Inspect Workers¶
Check which worker nodes are online and what tasks they are capable of running.
| Inspect | |
|---|---|
Purging Queues¶
If you have a buildup of unwanted tasks, you can clear a queue:
Periodic Tasks (Beat)¶
To start the scheduler that triggers periodic tasks:
Configuration
Worker settings like broker_url, concurrency, and queues are managed in the services.xworker section of integration.yaml.
Next Steps¶
For detailed control over multiple worker processes, including logs and status tables, see Process Management.