Installation & Configuration
Prerequisites
Python 3.8+
A running Celery project
A message broker (Redis, RabbitMQ, etc.)
Installation
You can install celeryviz directly from PyPI:
pip install celeryviz
Or using docker image:
docker pull bhavyatech/celeryviz:latest
Configuration
Celeryviz Configuration
celeryviz can be configured via environment variables or passing arguments to the command line.
CLI Argument |
Environment Variable |
Description |
Default |
|---|---|---|---|
|
|
Port for the visualization server |
|
|
|
Disable live streaming of events through socketio (to be used when only recording to file or dumping to DB) |
|
|
|
Path to the log file to record events to. (.jsonl or .ndjson only accepted) |
|
|
|
Log level for the visualization server |
|
Celery Configuration
Apart from the provided config, the standard celery configuration is also supported by passing those before celeryviz sub-command.
Example
Using
-Aflag to use celery app configuration
celery -A your_app_name celeryviz -l INFO --record-file=./events.jsonl
Using
--brokerflag to use directly connect to broker rather than a celery app configuration
celery --broker='redis://host.docker.internal:6379/0' -A celeryviz -l INFO --record-file=./events.jsonl