我就叫贝塔 2021-07-10 23:59 采纳率: 0%
浏览 62

使用celery守护进程的时候,启动celerybeat报错

启动命令:C_FAKEFORK=1 sh -x /etc/init.d/celerybeat start
报错信息:You are using --app as an option of the beat sub-command:
celery beat --app celeryapp <...>

The support for this usage was removed in Celery 5.0. Instead you should use --app as a global option:
celery --app celeryapp beat <...>
Usage: celery beat [OPTIONS]
Try "celery beat --help" for help.

Error: no such option: --app

celery版本5.1,python3.8, django3

  • 写回答

1条回答 默认 最新

  • 第九系艾文 2022-12-10 10:14
    关注

    同时启动celery和beat,在django项目可以通过下面命令操作
    fir_ser :django项目

    celery -A fir_ser  worker  --beat --scheduler django --loglevel=debug
    
    
    评论

报告相同问题?

问题事件

  • 创建了问题 7月10日