Live data from Hacker News

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

news.ycombinator.com

281–290 of 336 posts

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

#282

Earlier quoted context omitted.

Just note that they’re not guaranteed to be called precisely on time, e.g. my “every 15m” CRON job will be called every 15m _at best_, in practice… twice per hour. This works perfectly for my case (content syndication for https://potato.horse ), and I’m pretty happy with GH actions for this kind of stuff, but if you need something more precise, you might want to look somewhere else.

> Just note that they’re not guaranteed to be called precisely on time, e.g. my “every 15m” CRON job will be called every 15m _at best_, in practice… twice per hour Is the spread really that egregious? That's essentially a 50% failure to trigger at all, like I don't think you can call that 15 minutes so much as 15±10 minutes lmfao IIRC AWS EventBridge is also not guaranteed to execute on the exact minute, but in my e…

Just checked the logs: it used to be 2 per hour, but now it has improved to 3-5, so closer to the "every 15 m" rule. Again, not a big deal in my case and probably something that's being worked on.

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

#283
post #253

Earlier quoted context omitted.

At this point I don't even know if this comment is satire or not.

I don't see how it's satirical. If you need a job to run, you need to handle the case of transient node failures. K8S helps alleviate this issue by allowing the job to be launched on any of a choice of nodes. Sure, cron is fine if you're just looking to rotate logs on the local machine, but if you want to reset your nuclear watchdog timer, you may want something more reliable :)

I'm sensing a need for a blockchain here.

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

#284

Earlier quoted context omitted.

I don't see how it's satirical. If you need a job to run, you need to handle the case of transient node failures. K8S helps alleviate this issue by allowing the job to be launched on any of a choice of nodes. Sure, cron is fine if you're just looking to rotate logs on the local machine, but if you want to reset your nuclear watchdog timer, you may want something more reliable :)

If you need a job to run, you need to handle the case of governments turning against you. A huge nuclear capable military and a top notch spy agency helps alleviate this issue by allowing missiles to be launched on any belligerent nations.

I best add a nuclear capable military to the 2023 budget. I know we need to look after every penny, however, the increased reliability is surely worth it.

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

#285
From Dictionary:

Cheap: low in price, especially in relation to similar items or services.

Easy: achieved without great effort; presenting few difficulties.

Because "easiest" AND "cheapest" are logically conflicting, my answer only applies to "easy" ways of hosting cron jobs. My answer also holds true for background tasks that are not always scheduled.

The two tools I rely on are:

1. Pipedream

2. Windmill (open-source pipedream)

Both of them let me define functions that need to be run on schedule. Also functions that can react to real world events (webhooks). I can code in Go/ Js/ Ts or Python. Everything is version controlled, stored in Git.

For Pipedream, you pay a premium for managed service. Windmill can be hosted on a $5 machine.

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

#286

From Dictionary: Cheap: low in price, especially in relation to similar items or services. Easy: achieved without great effort; presenting few difficulties. Because "easiest" AND "cheapest" are logically conflicting, my answer only applies to "easy" ways of hosting cron jobs. My answer also holds true for background tasks that are not always scheduled. The two tools I rely on are: 1. Pipedream 2. Windmill (open-sourc…

I'll check out your suggestions. I'm not sure you explained why cheap and easy are logically conflicting, though.

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

#288

Earlier quoted context omitted.

If you need a job to run, you need to handle the case of governments turning against you. A huge nuclear capable military and a top notch spy agency helps alleviate this issue by allowing missiles to be launched on any belligerent nations.

I best add a nuclear capable military to the 2023 budget. I know we need to look after every penny, however, the increased reliability is surely worth it.

Just use AWS MAD.
Post reply on HN