Hacker News new | ask | show | jobs
by davide_v 1271 days ago
I'm still using the old way: "crontab -e" inside the same EC2 where I run the app. In case of failure I automatically send an email to me. This is the easiest scenario in case you already have an EC2 for some other things that is already running. Instead, from scratch (no EC2), I'd probably use Lambda.
1 comments

Out of curiosity and for the sake of completeness, by failure, you're probably talking about an error that the script itself can detect? What about a scenario where the EC2 goes down (silently)?
Yes I mean failure of the cron script itself. If the EC2 goes down entirely there are other alerts you can set up on AWS, such as Cloudwatch or similar.