在Heroku上运行Cron任务 [英] Running Cron Tasks on Heroku

查看:107
本文介绍了在Heroku上运行Cron任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到Heroku每月收费15美元/月运行延迟工作,每月$ 3 /月运行cron任务。是否可以完全跳过并手动运行我自己的cron任务?

I've seen that Heroku charges $15/mo to run Delayed Job, and $3/mo to run cron tasks daily. Is it possible to skip that entirely and run my own cron tasks manually? Or are they somehow figuring out that I'm running cron tasks?

推荐答案

我不知道你的意思是什么,手动运行我自己的cron任务。对于特定的cron ,您需要访问他们可以控制的 crontab ,因为他们是他们的服务器。如果你有另一种方式,它可能会很好,但要记住,你的应用程序不绑定到一个特定的服务器运行在Heroku下,并且服务器之间更改执行。

I'm not entirely sure what you mean by "run my own cron tasks manually". For cron specifically, you need access to crontab, which they can control, as they're their servers. If you have another way of doing it, it would probably be fine, but bear in mind that your app is not tied to a specific server when running under Heroku, and that the server will change between executions.

此外,除非他们自上次检查以来更改了它,否则您可以免费运行每日cron任务,但每小时的费用为每月3美元。

Also, unless they've changed it since last time I checked, you can run daily cron tasks for free, but hourly costs $3/mo.

EDIT :是的,每日crons是免费的。请参阅 http://addons.heroku.com/

EDIT: Yes, daily crons are free. See http://addons.heroku.com/.

这篇关于在Heroku上运行Cron任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆