celery debug tasks.
Project description
celery-debug
celery debug tasks.
安装
pip install celery-debug
输出的celery调试服务
- debug.ping
- debug.echo
- debug.sleep
- debug.raise_error
- debug.retry_n
启动
-
在工作目录下创建
celeryconfig.py,添加以下内容# concurrency worker_concurrency = 10 worker_pool = "threads" # broker_url and result_backend broker_url = "redis://redis/0" result_backend = "redis://redis/1" # internal configs 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_track_started = True task_acks_late = True task_acks_on_failure_or_timeout = True task_reject_on_worker_lost = True # 额外新增的配置项 # 配置后所有任务都使用不同的队列 use_different_queue = True
-
使用以下命令启动celery worker
celery -A celery_debug.app:app worker -l DEBUG
版本记录
v0.1.0
- 版本首发。
v0.1.1
- 提供配置项,快速让所有任务都使用不同的队列。
v0.1.2
- use_different_queue方法做成工具函数。让用户自主控制,避免一引入就强制设置。
v0.1.4
use_different_queue自动绑定celery消息队列。- 添加
deubg.sleep任务。 - 添加
debug.raise_error任务。 - 添加
debug.retry_n任务。
v0.1.5
- Doc update.
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.5.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file celery_debug-0.1.5.tar.gz.
File metadata
- Download URL: celery_debug-0.1.5.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64925468e8ed7c405e26fb15a47c499da0f2c7d11704cae2a075343bfae9ae53
|
|
| MD5 |
f1c67b83b5d62514e12f2d9e8cbd99fd
|
|
| BLAKE2b-256 |
bb550ec21a3336c6be43c24ada01b7fc712202362a3aa1306bfd7c4326fc05f7
|
File details
Details for the file celery_debug-0.1.5-py3-none-any.whl.
File metadata
- Download URL: celery_debug-0.1.5-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ac6ea4f158cb44c471a1714d98044963cc816c2a1bf2697a5def7b85859860f
|
|
| MD5 |
55c47a1b2dbdca175847c9a83f21b4c1
|
|
| BLAKE2b-256 |
23519b510e257a0457f91af49c3b5a0e52a71481a4aec9c9df49a9867b97ae9e
|