Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
21–30 of 336 posts
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#22* free-tier vps on GCP or Oracle Cloud
* lambda job on AWS
I have a cheap VPS I use for other things and just run my cron jobs there.
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#23Raspberry Pi at home if you don't have a home server already. Or some low spec cheap vps.
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#24You can checkout https://cronhub.io (I run it). Behind the scenes, it wraps a lambda function with EventBridge (so you can set schedule) and adds other goodies like notifications/alert (slack/email etc), metrics, notifications if job runs slow etc. Not free but basically you wrap your job in http endpoint and then we take care of the rest.
I think OP doesn't want to keep a machine running permanently. If you do that, adding your own crontab entry would be trivial as well.
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#25Github actions FTW! > https://docs.github.com/en/actions/using-workflows/events-th... I remember seeing a couple projects shared before, using this technique to scrape sites with GHA
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.
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#26Github actions FTW! > https://docs.github.com/en/actions/using-workflows/events-th... I remember seeing a couple projects shared before, using this technique to scrape sites with GHA
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#27The UI is excellent for this. You can probably find cheaper on Fly but probably not easier.
Even easier, maybe more expensive than Render:
https://www.zeplo.io/docs/schedule
You just hit a URL like so and it's done. zeplo.to/your_url.com?_cron=5|14|||*
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#28All free: * free-tier vps on GCP or Oracle Cloud * lambda job on AWS I have a cheap VPS I use for other things and just run my cron jobs there.
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#29From their pricing example:
> You schedule a job to run once an hour for 15 seconds. This job uses 50% of one CPU core and 256 MiB of memory. This job will cost $0.016/day for the CPU, and $0.001/day for the memory, adding up to $0.017/day, or $0.51/month.
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#30Easiest way I found to do that was Azure Functions. Costs me about 35p per month. Mostly for storage for logs as far as I can tell. I'd sort that, but it's literally not worth the time it would take