4 ms·
Ask HN: 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?
- quickthrower2 7y agoAzure 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.
- chewz 7y agoGoogle Cloud Functions and Cloud Scheduler.. https://cloud.google.com/scheduler https://cloud.google.com/scheduler
- manicbits 7y agoEasy with AWS Lambda. https://docs.aws.amazon.com/lambda/latest/dg/services-cloudwatchevents-expressions.html https://docs.aws.amazon.com/lambda/latest/dg/services-cloudw...
- tnolet 7y agoHeroku with the Heroku scheduler addon.
- ecesena 7y agoCron 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.
- jshawl 7y agoGitHub actions can run on a schedule - https://help.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule https://help.github.com/en/actions/reference/events-that-tri...
- seanwilson 7y agoI haven't tried it but Firebase has scheduled cloud functions: https://firebase.google.com/docs/functions/schedule-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.