Open buff0k opened 1 year ago
Add to Dockerfile: apt install cron --no-install-recommends -y RUN crontab -l | { cat; echo "/5 * python /src/indigo/manage.py process_tasks --duration 180"; } | crontab -
Add to entrypoint.sh: cron
Edit /src/indigo/indigo/settings.py DJANGO_BACKGROUND_TASKS=True
Testing with the sed command in Dockerfile build
Perhaps look into this as a fix to the current issue
cd /home/username/appname && /home/username/virtualenv/bin/python /home/username/appname/manage.py process_tasks --duration 3540
Create a cron job for background tasks to run from the container.