跳至内容
白宦成的数字花园
用户工具
登录
站点工具
搜索
工具
显示页面
过去修订
反向链接
最近更改
媒体管理器
网站地图
登录
>
最近更改
媒体管理器
网站地图
您在这里:
start
»
django
»
package
»
huey
您的足迹:
django:package:huey
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
====== Huey ====== ===== 安装 ===== <code copy Bash [enable_line_numbers="true"]>uv add huey redis</code> ===== apps ===== <code copy Bash [enable_line_numbers="true"]>'huey.contrib.djhuey',</code> ===== settings ===== <code copy Bash [enable_line_numbers="true"]>HUEY = { "huey_class": "huey.RedisHuey", # Huey implementation to use. "name": DATABASES["default"]["NAME"], # Use db name for huey. "results": True, "store_none": False, "immediate": DEBUG, "utc": True, "blocking": True, # Perform blocking pop rather than poll Redis. "connection": { "host": "localhost", "port": 6379, "db": 0, "connection_pool": None, # Definitely you should use pooling! # ... tons of other options, see redis-py for details. # huey-specific connection parameters. "read_timeout": 1, # If not polling (blocking pop), use timeout. "url": None, # Allow Redis config via a DSN. }, "consumer": { "workers": 1, "worker_type": "thread", "initial_delay": 0.1, # Smallest polling interval, same as -d. "backoff": 1.15, # Exponential backoff using this rate, -b. "max_delay": 10.0, # Max possible polling interval, -m. "scheduler_interval": 1, # Check schedule every second, -s. "periodic": True, # Enable crontab feature. "check_worker_health": True, # Enable worker health checks. "health_check_interval": 1, # Check worker health every second. }, }</code>
/storage/data/pages/django/package/huey.txt
· 最后更改:
2025/07/02 06:19
由
bestony
页面工具
显示页面
过去修订
反向链接
回到顶部