Skip to main content

A UI centric tool for visualising Celery task execution.

Project description

CeleryViz

A UI centric tool for visualising Celery task execution.

Live Demo

This project simplifies debugging of asynchronous Celery tasks by offering a visual representation of the task execution flow. Instead of combing through the log files, developers can use Celeryviz to visually trace and debug task processes more efficiently.

Installation

  1. Python library
pip install celeryviz
  1. Docker image
docker pull bhavyatech/celeryviz:0.0.3

Usage

1. Create a celery project.

curl https://gist.githubusercontent.com/bhavya-tech/d937ef45905720014ee12fe332352966/raw/0afac784adfb6b407fa83ce4b19e6f3cab4d80d9/example_app.py -o example_app.py

2. Start the celery worker:

  • Ensure a message broker is running (can use RabbitMQ for simplicity)

  • Schedule a task for celery to run:

celery -A example_app call example_app.add --args='[1, 100]' --kwargs='{"z":10000}'
  • Run the celery worker.
celery -A example_app worker -l info -E

3. Start the CeleryViz server:

3.1 Using docker image

There are two ways to run celeryviz:

  1. Pass the broker url
docker run -p 9095:9095 bhavyatech/celeryviz:0.0.3 celery --broker='<broker_url>' celeryviz
  1. Use the configuration of celery application.
docker run -p 9095:9095 -v $PWD:/app bhavyatech/celeryviz:0.0.3 celery -A example_app.app celeryviz
3.2 Using the installed celeryviz python library
  • In a new terminal, run the following command:
celery -A example_app celeryviz

4. Connect to the server:


Reporting violations

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at bhavyapeshavaria@gmail.com. All complaints will be reviewed and investigated promptly and fairly.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

celeryviz-0.0.3.tar.gz (8.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

celeryviz-0.0.3-py3-none-any.whl (8.0 MB view details)

Uploaded Python 3

File details

Details for the file celeryviz-0.0.3.tar.gz.

File metadata

  • Download URL: celeryviz-0.0.3.tar.gz
  • Upload date:
  • Size: 8.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for celeryviz-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2add61a8158b4ff493ebb23190b3d8d960a1779d003d625c069d0aec4dd71fc5
MD5 e789373d8f5f90364b1c3cc3954aa13f
BLAKE2b-256 6660a5d2cb9d66247db716a0882711b1902487e525a9dcbffd416aa9138e9bca

See more details on using hashes here.

File details

Details for the file celeryviz-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: celeryviz-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for celeryviz-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7354fa5a412dc25f7aa9f86aae3345127c84df4418053dc1e1be62891076ac43
MD5 7ed50084908395febf2830dc75cabfcd
BLAKE2b-256 445998f8b772cd15f1a52e03633cfb58dea30dea3e1e069300570348d866d8f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page