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:app worker -l DEBUG 
    

版本记录

v0.1.0

  • 版本首发。

v0.1.1

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

v0.1.2

  • use_different_queue方法做成工具函数。让用户自主控制,避免一引入就强制设置。

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.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

celery_debug-0.1.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: celery-debug-0.1.2.tar.gz
  • Upload date:
  • Size: 3.8 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.2.tar.gz
Algorithm Hash digest
SHA256 9a00db946d9ca05b8ffefb6364699ad876c720a6dfe20aeb5976387263e2ef2a
MD5 6ef4440c4c2df1d9a5a0397f9b16fc61
BLAKE2b-256 ff757adcb5411fd8c4bef71176a17c85978ed2b8a953ec8e3c76c9697c28ad96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for celery_debug-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 19f390e32eeddcc29136330d5e1e9a94b16131e09bd252e08afa0a16952b24b1
MD5 adfdb6ed2f74e9323d18dacdb1ac410d
BLAKE2b-256 f3be7122f905651e16b2cea72f3be3166b2c892729fa645a5f0bfdcad19ca244

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