Again, I would suggest that you try to find the real heart of the issue and find ways to debug/instrument the code to figure out what is happening that gets it stuck.
Maybe opening a ticket with the heroku team may help (maybe its something they've seen, or they have a good suggestion for how to dig in to it). They read the mailing list, but an actual support ticket may be the way to go for you. A solution where you restart your app just doesn't seem like it will scale to me, unless you are firing it off like a cron/delayed job, that has a natural restart flow. (would it make sense for the scraping part of the app to be a background job?) just throwing in my 2c On Wed, Nov 16, 2011 at 8:09 AM, Corey Trager <[email protected]> wrote: > Not working yet. > > Testing on my dev box, heroku.restart resulted in a 404 but > heroku.ps_restart DID restart my app running at Heroku, so that was > promising. That is, my local app A could restart my Heroku app B. > But, when deployed to Heroku and tried to have B restart itself, > ps_restart resulted in "NoMethodError" for Heroku::Client and restart > resulted in RestClient::ResourceNotFound. > The NoMethodError, does that mean I'm using an older stack with an > older Heroku gem? > The RestClient, I guess heroku needs to know a host? So, I'm looking > for docs for the gem. > Do you think I'm on the right track? > > > On Nov 15, 5:04 pm, Neil Middleton <[email protected]> wrote: > > You can always use the Heroku gem to talk to the heroku infrastructure > as the CLI does. > > > > For instance: > > > > @heroku = Heroku::Client.new(ENV["HEROKU_EMAIL"], ENV["HEROKU_PASSWORD"]) > > > > You can then issue commands such as: > > > > @heroku.restart('app_name') > > > > Neil > > > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- Thanks, -John -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
