TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

5 pointsby 1penny42centsabout 5 years ago
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?

7 comments

manicbitsabout 5 years ago
Easy with AWS Lambda.<p><a href="https:&#x2F;&#x2F;docs.aws.amazon.com&#x2F;lambda&#x2F;latest&#x2F;dg&#x2F;services-cloudwatchevents-expressions.html" rel="nofollow">https:&#x2F;&#x2F;docs.aws.amazon.com&#x2F;lambda&#x2F;latest&#x2F;dg&#x2F;services-cloudw...</a>
seanwilsonabout 5 years ago
I haven&#x27;t tried it but Firebase has scheduled cloud functions: <a href="https:&#x2F;&#x2F;firebase.google.com&#x2F;docs&#x2F;functions&#x2F;schedule-functions" rel="nofollow">https:&#x2F;&#x2F;firebase.google.com&#x2F;docs&#x2F;functions&#x2F;schedule-function...</a><p>Firebase is really easy to get started with so I&#x27;d recommend it for prototyping if you&#x27;re not keen on AWS or Google Cloud.
jshawlabout 5 years ago
GitHub actions can run on a schedule - <a href="https:&#x2F;&#x2F;help.github.com&#x2F;en&#x2F;actions&#x2F;reference&#x2F;events-that-trigger-workflows#scheduled-events-schedule" rel="nofollow">https:&#x2F;&#x2F;help.github.com&#x2F;en&#x2F;actions&#x2F;reference&#x2F;events-that-tri...</a>
quickthrower2about 5 years ago
Azure has logic app service.<p>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.
ecesenaabout 5 years ago
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.
chewzabout 5 years ago
Google Cloud Functions and Cloud Scheduler..<p><a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;scheduler" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;scheduler</a>
tnoletabout 5 years ago
Heroku with the Heroku scheduler addon.