Live data from Hacker News

Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?

news.ycombinator.com

331–336 of 336 posts

Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?

#331
post #322

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)?

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.

Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?

#332
post #83

Earlier 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?

Yeah... I will probably do that, with my daily check action (update a last-check) text file or something.

Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?

#333

Earlier 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?

But then I need a second system to do that.

Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?

#334
post #90

Hey, 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…

as a former temporal employee, its cool to see this, but how did you pitch YC on being essentially a Temporal wrapper? whats the moat?

Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?

#335

Easiest: 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 |
  -------------------------------------------------------------
Post reply on HN