HACKER Q&A
📣 1penny42cents

What's the simplest way to run a cron script on the cloud?


I have a proof-of-concept script that should run once a day. I would prefer to not run a server all day for a one-time job. What's your preferred way to provision something like this on the cloud?


  👤 manicbits Accepted Answer ✓

👤 seanwilson
I haven't tried it but Firebase has scheduled cloud functions: https://firebase.google.com/docs/functions/schedule-function...

Firebase is really easy to get started with so I'd recommend it for prototyping if you're not keen on AWS or Google Cloud.


👤 jshawl

👤 quickthrower2
Azure has logic app service.

But it depends on what you already have. I have a side project with a ec2 running node so I just use cron from npm (rather than the os cron) to do the trick and pm2 to keep that node running.


👤 ecesena
Cron on app engine is free, assuming your script is light enough. You may need a paid account if you have to connect externally, but you can set $0 as total budget.

👤 chewz
Google Cloud Functions and Cloud Scheduler..

https://cloud.google.com/scheduler


👤 tnolet
Heroku with the Heroku scheduler addon.