Write cron business logic as a Python class and let this app do the rest! It enables Django projects to schedule cron tasks, tracks their success / failures, manages contention (via a cache) etc. Basically takes care of all the boring work for you :-)
Followed the documentation, but getting /bin/sh: 1: source: not found in my cronjob.log file. Crons are working fine if I manually run manage.py runcrons --force
Followed the documentation, but getting /bin/sh: 1: source: not found in my cronjob.log file. Crons are working fine if I manually run manage.py runcrons --force
my crontab: /5 * (source /home//.bashrc && source /home//venv/bin/activate && python /home//myapp/manage.py runcrons) > /home//cronjob.log 2>&1