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.
Metadata
Release files for celery-debug 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| celery_debug-0.1.5.tar.gz | 4.3 kB | Without provenance | Details for celery_debug-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| celery_debug-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for celery_debug-0.1.5-py3-none-any.whl |
Total release size: 8.9 kB
Release files / celery_debug-0.1.5.tar.gz
| Download URL | celery_debug-0.1.5.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64925468e8ed7c405e26fb15a47c499da0f2c7d11704cae2a075343bfae9ae53
|
|
BLAKE2b-256 checksum How to use checksums |
bb550ec21a3336c6be43c24ada01b7fc712202362a3aa1306bfd7c4326fc05f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.12
|
Release files / celery_debug-0.1.5-py3-none-any.whl
| Download URL | celery_debug-0.1.5-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ac6ea4f158cb44c471a1714d98044963cc816c2a1bf2697a5def7b85859860f
|
|
BLAKE2b-256 checksum How to use checksums |
23519b510e257a0457f91af49c3b5a0e52a71481a4aec9c9df49a9867b97ae9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.12
|
Security for celery-debug 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.