新华小霸王 2020-09-30 11:47 采纳率: 0%
浏览 89

django_cronjob定时器启动失败

定时器任务添加后没有执行,且运行 python manage.py crontab run报错如下

'Run "python manage.py crontab add" again to resolve this issue!' % job_hash
RuntimeError: No job with hash None found. It seems the crontab is out of sync with your settings.CRONJOBS. Run "python manage.py crontab add" again to resolve this issue!

查询定时任务能够查询

Currently active jobs in crontab:
run -> ('*/1 * * * *', 'cron_test.utils.do_something', '>> /home/wuxianxuhang/test.log')

日志文件也不见有输出,请问该问题应该如何解决

  • 写回答

2条回答 默认 最新

  • zqbnqsdsmd 2020-10-02 13:43
    关注
    评论

报告相同问题?