Heroku&延迟作业 - 自动缩放分支 - RestClient :: ResourceNotFound [英] Heroku & Delayed Job - Autoscale Branch - RestClient::ResourceNotFound

查看:89
本文介绍了Heroku&延迟作业 - 自动缩放分支 - RestClient :: ResourceNotFound的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SomeController#update(RestClient :: ResourceNotFound)Resource Not Found



我试图延迟入队时收到这个错误(以前不是)使用DelayedJob的自动调整分支的作业。这不会发生在没有自动缩放分支的情况下,但我无法确定问题所在。

如果有人遇到相同的情况,或者可以指出我可能的原因,我会非常感激您的建议。

解决方案

只是一个猜测......



发生ResourceNotFound是因为在使API请求自动缩放时,heroku gem找不到您的应用程序?尝试在您的应用外使用heroku gem,并确保您可以在加载了gem(不是Heroku控制台)的IRB控制台中对您的应用执行操作。


SomeController#update (RestClient::ResourceNotFound) "Resource Not Found"

I'm receiving this error (where previously I was not) while trying to enqueue delayed jobs using the autoscale branch of DelayedJob. This does not occur with a none autoscale branch but I'm at a loss to pinpoint what the problem is.

If anyone is experiencing the same or can point me toward a likely cause I'd be grateful for advice.

解决方案

Just a guess...

Is it possible the ResourceNotFound is occurring because the heroku gem cannot find your app when making the API requests to auto-scale? Try using the heroku gem outside your app and make sure you can do operations on your app from within an IRB console with the gem loaded (not Heroku console).

这篇关于Heroku&延迟作业 - 自动缩放分支 - RestClient :: ResourceNotFound的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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