{"action":"created","issue":{"url":"https://api.github.com/repos/brandonhilkert/sucker_punch/issues/6","labels_url":"https://api.github.com/repos/brandonhilkert/sucker_punch/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/brandonhilkert/sucker_punch/issues/6/comments","events_url":"https://api.github.com/repos/brandonhilkert/sucker_punch/issues/6/events","html_url":"https://github.com/brandonhilkert/sucker_punch/issues/6","id":11422075,"number":6,"title":"sucker_punch seems to have problems with Phusion Passenger","user":{"login":"gduprey","id":2531126,"avatar_url":"https://avatars.githubusercontent.com/u/2531126?v=3","gravatar_id":"","url":"https://api.github.com/users/gduprey","html_url":"https://github.com/gduprey","followers_url":"https://api.github.com/users/gduprey/followers","following_url":"https://api.github.com/users/gduprey/following{/other_user}","gists_url":"https://api.github.com/users/gduprey/gists{/gist_id}","starred_url":"https://api.github.com/users/gduprey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gduprey/subscriptions","organizations_url":"https://api.github.com/users/gduprey/orgs","repos_url":"https://api.github.com/users/gduprey/repos","events_url":"https://api.github.com/users/gduprey/events{/privacy}","received_events_url":"https://api.github.com/users/gduprey/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2013-02-26T18:37:55Z","updated_at":"2016-01-15T16:00:48Z","closed_at":"2013-03-03T16:36:05Z","body":"I got sucker_punch working in just a few minutes in my development environment.  However, when attempting to deploy into a production environment using Phusion Passenger, I'm seeing problems.  \r\n\r\nOne is that while there are no errors displayed, any attempt to queue a worker/task async doesn't do anything.  The call completes, but the worker never seems to run.\r\n\r\nThe other, which may inform this, is that attempts to query the state of a queue after submitting a task yield a fatal (deadlock detected) error\r\n\r\nSpecifically, in code that looks like this:\r\n\r\n    SuckerPunch::Queue[:history_queue].async.perform(Admin::User.current_user.id, new_fav)\r\n    puts \" ** QUEUED History for SuckerPunch, SIZE=[#{SuckerPunch::Queue[:history_queue].size.to_s}], BUSY=[#{SuckerPunch::Queue[:history_queue].busy_size.to_s}]\"\r\n\r\nTh line with the puts, trying to query the queue causes the above deadlock to occur. And, per the former note, even though the '....async.perform(xxx)' call doesnt pass an error, the actual worker for this never runs (or at least the perform() method isn't called).\r\n\r\nUnder development (using the standard 'rails server' webrick server), all works without an error.\r\n\r\nIs there anything special about setting up sucker_punch to make it work with tools like passenger?"},"comment":{"url":"https://api.github.com/repos/brandonhilkert/sucker_punch/issues/comments/172000326","html_url":"https://github.com/brandonhilkert/sucker_punch/issues/6#issuecomment-172000326","issue_url":"https://api.github.com/repos/brandonhilkert/sucker_punch/issues/6","id":172000326,"user":{"login":"brandonhilkert","id":744212,"avatar_url":"https://avatars.githubusercontent.com/u/744212?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonhilkert","html_url":"https://github.com/brandonhilkert","followers_url":"https://api.github.com/users/brandonhilkert/followers","following_url":"https://api.github.com/users/brandonhilkert/following{/other_user}","gists_url":"https://api.github.com/users/brandonhilkert/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonhilkert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonhilkert/subscriptions","organizations_url":"https://api.github.com/users/brandonhilkert/orgs","repos_url":"https://api.github.com/users/brandonhilkert/repos","events_url":"https://api.github.com/users/brandonhilkert/events{/privacy}","received_events_url":"https://api.github.com/users/brandonhilkert/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T16:00:48Z","updated_at":"2016-01-15T16:00:48Z","body":"@richww Can you give the latest `2.0.0` beta a shot? I'm not inclined to go back and dig in to that version at this point."}}