Live data from Hacker News

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

news.ycombinator.com

41–50 of 336 posts

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

#42
post #4

Sounds like a job for serverless functions, e.g. in Azure [1], though I'm sure every hyperscaler has that. The Azure version even uses Cron syntax for the scheduling. [1] https://learn.microsoft.com/en-us/azure/azure-functions/func...

I came to post about this, its super simple too

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

#44
post #22

All 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.

I don't know about the others, but AWS is not free and it's not cheap. There are ways to set alerts on budget overruns, but there is no foolproof way to limit monthly spending. Eventually you will configure something that goes out of control, or I was able to conceive of a few scenarios where a malicious third party could rack up charges for, e.g. S3 egress costs. Good luck contesting the charges more than once. I sh…

Lambda on AWS is basically free for personal crons. I ran lots on there until I moved everything to a personal k8s cluster for some more granular control over scheduling.

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

#45

Cheap vps running urlwatch sending alerts with pushover. Turn on unattended upgrades for the server. The one time pushover fee is well worth it.

I've never known about urlwatch, I always rolled my own in python (and then copy/pasted for the next task)

there it is an apt-get away

Thanks!

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

#46
post #26
post #12

Github 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

AFAIK, scheduled GitHub workflows stop running after a while. But when that happens, GitHub will send you an email with a big green “Continue running workflow” button.

sounds like time to make a “hit the big green button” github action

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

#49
Check out https://apify.com (disclaimer: I work there :)) - a platform focused on web automation and web scraping. You can easily build any (but mainly NodeJS or Python) project there as a Docker container and schedule it in a minute. See my 2 min. video - https://share.cleanshot.com/osSygJ

Priced: $0.25/GB-hour + data transfer and storage

Post reply on HN