Skip to main content

celery debug tasks.

Project description

celery-debug

celery debug tasks.

安装

pip install celery-debug

输出的celery调试服务

  • debug.ping
  • debug.echo

启动

  1. 在工作目录下创建celeryconfig.py,添加以下内容

    worker_concurrency = 10
    worker_pool = "threads"
    broker_url = "redis://redis/0"
    result_backend = "redis://redis/1"
    accept_content = ["application/json"]
    task_serializer = "json"
    result_accept_content = ["application/json"]
    result_serializer = "json"
    timezone = "Asia/Shanghai"
    broker_connection_retry_on_startup = True
    # 额外新增的配置项
    # 配置后所有任务都使用不同的队列
    use_different_queue = True
    
  2. 使用以下命令启动celery worker

    celery -A celery_debug:app worker -Q debug -l DEBUG
    

版本记录

v0.1.0

  • 版本首发。

v0.1.1

  • 提供配置项,快速让所有任务都使用不同的队列。

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

celery-debug-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

celery_debug-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file celery-debug-0.1.1.tar.gz.

File metadata

  • Download URL: celery-debug-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for celery-debug-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6d9f407a67b5a03d6785d5b48f9807b0da7fb97c363526556f7b9cc21e9ee897
MD5 e249eee4a0b95dde5873f6aaad77367b
BLAKE2b-256 a2062587e9973202bb58c91a67aae42cee7c3dfbbd00781c6f36707f83e92656

See more details on using hashes here.

File details

Details for the file celery_debug-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for celery_debug-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2dceea3beed1ed754369f645cf0b205cd57aeacc47a42490dd85ac523b2a6728
MD5 e32a8b70702c706950bada94cce75bf0
BLAKE2b-256 a297ffc8abb06662eef9dc10c4181a0f11e4dc4f5327e25d018c0063f775e5e3

See more details on using hashes here.

Supported by

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