欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

windows——celery

发布时间:2025/7/25 167 豆豆
生活随笔 收集整理的这篇文章主要介绍了 windows——celery 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

celery 4.0版本以后放弃对Windows的支持 GITHUB_issues(https://github.com/celery/celery/issues/4178)

替代解决方案:

安装:pip install eventlet

运行:celery -A tasks worker --pool=eventlet

使用eventlet替代prefork,使用solo也是可以的。

 

关于--pool参数的使用可以通过

$celery worker --help

查看

-P POOL, --pool POOL Pool implementation: prefork (default), eventlet, gevent or solo.

 

转载于:https://www.cnblogs.com/LicwStack/p/10839112.html

总结

以上是生活随笔为你收集整理的windows——celery的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。