TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

5 点作者 1penny42cents大约 5 年前
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 条评论

manicbits大约 5 年前
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>
seanwilson大约 5 年前
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.
jshawl大约 5 年前
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>
quickthrower2大约 5 年前
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.
ecesena大约 5 年前
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大约 5 年前
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>
tnolet大约 5 年前
Heroku with the Heroku scheduler addon.