Question: Sleeping in Ruby crashes Heroku app

Question

Sleeping in Ruby crashes Heroku app

Answers 0
Added at 2016-12-17 03:12
Tags
Question

So I'm building a Ruby app in Sinatra and I want to set a delay before executing an action. Right now I have "sleep X," which does indeed delay the action, but on my actual Heroku app my erb for the action never loads, and the app times out and crashes. I'm trying to simply display a page while the sleep works in the background, wondering if there's a tool that can delay method calls without shutting down the whole app. Thanks

Answers
Source Show
◀ Wstecz