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.
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)?
Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
331–336 of 336 posts
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#332Earlier quoted context omitted.
I've got a couple projects like this, that mostly just create bundles of other source projects that I'm not involved with. Creating a windows installer, or docker image for projects that don't have that integrated. It's kind of annoying that they will stop in several weeks when there's no project changes.
> It's kind of annoying that they will stop in several weeks when there's no project changes. Can't you configure a GHA which commits nonsense every month?
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#333Earlier quoted context omitted.
I've got a couple projects like this, that mostly just create bundles of other source projects that I'm not involved with. Creating a windows installer, or docker image for projects that don't have that integrated. It's kind of annoying that they will stop in several weeks when there's no project changes.
Can you not trigger an action via a local cronjob and the API?
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#334Hey, this is still a WIP, but I'm building [redacted]. We wrap an open-source workflow orchestrator Temporal that offers "durable execution" with very detailed execution tracing and a bunch of recovery mechanisms. We offer a fully-managed Temporal cluster, hosted runtime (so you don't need to worry about provisioning/scaling workers), and offer version control integrations, CI/CD and dynamic config out of the box - s…
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#335Easiest: Linux VM with cron. Pay for it, SSH into it, crontab -e , add your line, save file. Takes 5 minutes to set up. Moderately reliable. $1-$5/month depending on the provider Cheapest: Any CI/CD service provider. Takes 20 minutes to set up. Not very reliable. Free Next cheapest, least easy: complex proprietary serverless cloud functions to automatically trigger a task on a schedule. Takes an hour to set up. Most…
# Hosted Cron Jobs
-------------------------------------------------------------
| Solution | Difficulty | Reliability | Cost |
-------------------------------------------------------------
| Linux VM w/Cron | Easiest | Moderate | $1-$5 |
| CI/CD Provider | Moderate | Low | $0 |
| Serverless Cloud | Hardest | High | $0.30-$1.5 |
-------------------------------------------------------------