AWS Lambdas could be used for this, you can trigger them on a time schedule using an event bridge.
what happens if the processing takes longer than 30s?
Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
11–20 of 336 posts
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#12I 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?
#13You won't spend much at all, it's fractions of a penny per call and I think there's a free tier.
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#14Earlier quoted context omitted.
what happens if the processing takes longer than 30s?
Lambdas can run for 15 minutes
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#15Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#16It's cheap as in free, thanks to the generous free tier.
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#17You 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.
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#18AWS Lambdas could be used for this, you can trigger them on a time schedule using an event bridge.
Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?
#19Github 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
I use their cronjob functionality to ensure my docker images are built daily and therefore in theory secure.