celery debug tasks.
Project description
celery-debug
celery debug tasks.
安装
pip install celery-debug
输出的celery调试服务
- debug.ping
- debug.echo
启动
-
在工作目录下创建
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 task_routes = {}
-
使用以下命令启动celery worker
celery -A celery_debug:app worker -Q debug -l DEBUG
版本记录
v0.1.0
- 版本首发。
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.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for celery_debug-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e62b297585bfa68d6ab90385470faab1fa500fecf110f6516c5c052689d0dda |
|
MD5 | e7657a8fa2fd2afc34d17f5e539387dc |
|
BLAKE2b-256 | ff00200bedc4106c9f075745b7a365d6b500fcdbde3077ce03f9aa21f614b49d |