title: Run background process in Sinatra
body: <p>I have got Sinatra/Rails app and an action which starts some long process.</p>
  
  <p>Ordinary I make a queue for background jobs. But this case is too simple and background process starts very rarely, so queue is an overhead.</p>
  
  <p>So how could I run background process without queue?</p>
  
  <pre><code>get "/build_logs/:project" do
    LogBuilder.new(params[:project]).generate
    "done"
  end
  </code></pre>
  
  <p>I've tried to make it as a new Thread or Process fork, but it didn't help.</p>