按照步骤添加django cronjobs任务,通过python manage.py add添加成功,且show能够找到,但是run时报错如下
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!
按照指示多次运行add命令也无效
setting中的CRONJOBS编辑如下:
CRONJOBS = [
('*/1 * * * *', 'cron_test.utils.do_something', '>> %s/test.log' % os.path.join(BASE_DIR, 'logs'))
]
日志文件也没有输出