I have a Sinatra app that looks something like this:
get '/generate'
generate_result(params) # method that takes several minutes to complete
end
Unfortunately, method 'generate_result' takes several minutes to run. But Heroku's limitation is 30 seconds per request. I'm using a free Heroku account, so I'm looking for a solution that doesn't require buying a worker dyno.
I tried 'rack-timeout' gem, but the problem still appears on Heroku.