I wrote a service script in Python and I wanted it to run daily on Azure Web App Service. The catch? Same script will run differently when launched manually via SSH and when triggered with cron. Most notably, it will be missing all your environment variables. So how do you know what actually is in… Continue reading Debugging cron environment on Azure Web App Service
Tag: cron
Cron not working on Azure App Service (Linux)
If you deploy a Python (or any) app to Azure App Service for Linux, you may find that cron jobs in /etc/cron.d/ silently stop working. This is because App Service runs your app through a custom container with a startup.sh as PID 1, and the cron daemon is never started. Even if the cron package… Continue reading Cron not working on Azure App Service (Linux)