0

I know about Heroku Scheduler addon but is it very flexible like I want to be able run a task on the 1st and 15th of every month as well as at daily intervals.

What else can I use or is Scheduler the best option for Heroku?

4

2 回答 2

3

据我所知,调度程序是最好的选择。这是好的和可靠的。

于 2013-10-23T11:03:48.347 回答
0

如果您运行任务的最低频率是每天运行,则将调度程序配置为每天运行,然后在它运行的代码中检查月份中的哪一天并执行您想要的任务,无论是第 1 天、第 15 天还是第 x 天。

如果这不适合,那么您需要查看允许计划作业的后台处理器之一,例如 Sidekiq、DelayedJob 等,然后让您的作业以您想要的任何频率重新排队,但您需要运行一个工人使其以与调度程序类似的方式工作。

于 2013-10-24T07:55:33.437 回答