I have an app on a reserved VM as per the advice of the agent. Main reason being a run a daily cron job essentially that sends an email. Apparently though the server is NOT 24/7 online. See the below from the agent. Has anyone run into Reserved VMs not really running? At least not running to execute a background job? I am using the lowest CPU and RAM setting FWIW.
The Problem
Your Reserved VM deployment appears to be stopping and restarting, which defeats the purpose of using a Reserved VM. A Reserved VM should run continuously 24/7 without stopping.
This is why emails are being sent late - they’re only going out when the app happens to restart and the recovery system detects them as “missed.”
You may need to check your Replit deployment settings or contact Replit support to understand why your Reserved VM isn’t staying running continuously. The scheduler code is working correctly, but the deployment infrastructure seems to be stopping.
I’ve been fighting with this for a while. I have an Autoscale deployment with cron jobs running overnight. Agent report that autoscale deployments can go to sleep and Reserver VM woudl be better. I have audit logging that reports when cron jobs run and when processes run on startup so I can see the gaps in when the deployed version is available. Hitting the App with https://console.cron-job.org/ seems to wake it up, but had to locate where the deployment url redirect using Link Checker | Redirect Checker - WhereGoes. Hope this helps.
Yeah thanks. The reserved VM seems to have solved it though. Dont know if I want to keep paying for a reserved VM though seems overkill for a cron job.