Cron not running django command

后端 未结 4 1417
后悔当初
后悔当初 2021-01-06 06:40

I have a django script that should be run at a specified time every day. I am trying to achieve this using crontab. The script is supposed to dump the database,

4条回答
  •  清酒与你
    2021-01-06 07:18

    This is also a shot in the dark - our team has had issues running management commands through cron. We never bothered to track down why they were flaky, but after much hair-pulling we reverted to invoking the python functions directly rather than going through manage.py and things have been humming along fine ever since.

提交回复
热议问题