Crontab Django Management Command Seems To Start But Nothing Happens
I have defined a django management command that imports some data into my application database. I run it using a crontab. Sidenote: everything is inside a docker container. This co
Solution 1:
What stopped the cron execution was that I run a command in subprocess.Popen that did not use absolute paths. So Popen (which I didn't put inside a try .. except) crashed when call with the small cron environment variables.
I would not have thought to look there, because this part of code was called from my AppConfig.ready method.
I hope this can help someone, please tell me if you think I should remove this post, I'll do so when I get the notification.
Post a Comment for "Crontab Django Management Command Seems To Start But Nothing Happens"