Running workers
Note
See operating tasks for how to operate workers and brokers in self-hosted.
Workers are responsible for fetching tasks, executing them and reporting completion status back to a taskbroker. Before you can run a worker, you'll need to start a taskbroker. There are a few options for running workers:
Copied
# Run a worker in the foreground
sentry run taskworker
# Run a worker as part of the devserver
sentry devserver --workers
# Foreground the worker from a devservices mode like `ingest`
devservices foreground taskworker
The task-scheduler is responsible for reading the task schedules from settings.TASKWORKER_SCHEDULES
and spawning tasks as schedules become due.
Copied
sentry run taskworker-scheduler
Taskbroker can be started as a background service with devservices
Copied
devservices up --mode=taskbroker
Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").