{"action":"created","issue":{"url":"https://api.github.com/repos/airbrake/airbrake/issues/311","labels_url":"https://api.github.com/repos/airbrake/airbrake/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/airbrake/airbrake/issues/311/comments","events_url":"https://api.github.com/repos/airbrake/airbrake/issues/311/events","html_url":"https://github.com/airbrake/airbrake/issues/311","id":38731317,"number":311,"title":"UninitializedConstant on Async Worker Class during Deploy Notification","user":{"login":"bryanrite","id":829668,"avatar_url":"https://avatars.githubusercontent.com/u/829668?v=3","gravatar_id":"","url":"https://api.github.com/users/bryanrite","html_url":"https://github.com/bryanrite","followers_url":"https://api.github.com/users/bryanrite/followers","following_url":"https://api.github.com/users/bryanrite/following{/other_user}","gists_url":"https://api.github.com/users/bryanrite/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanrite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanrite/subscriptions","organizations_url":"https://api.github.com/users/bryanrite/orgs","repos_url":"https://api.github.com/users/bryanrite/repos","events_url":"https://api.github.com/users/bryanrite/events{/privacy}","received_events_url":"https://api.github.com/users/bryanrite/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-07-25T13:39:21Z","updated_at":"2015-02-06T20:20:27Z","closed_at":null,"body":"Hello!  I've recently upgraded to Capistrano 3, and my Airbrake config broke during deploy notifications.  I use Sidekiq as an async error pusher and configured my initializer as described in the wiki (https://github.com/airbrake/airbrake/wiki/Using-Airbrake-asynchronously).\r\n\r\nThis works fine for the actual running app (it pushes exceptions to Airbrake), but when doing a deploy, and reaching the deploy notification task, it throws an exception on the async worker: `Uninitialized Constant AirbrakeDeliveryWorker`.\r\n\r\nIf I manually load that file:\r\n\r\n```ruby\r\n# initializers/config/airbrake.rb\r\nrequire File.expand_path('../../../app/workers/airbrake_delivery_worker.rb', __FILE__)\r\n...\r\n```\r\n\r\nIt loads the worker ok, but since that worker includes `Sidekiq::Worker`, it initializes Sidekiq as well, which causes other problems...\r\n\r\nAll this worked fine in Capistrano 2.\r\n\r\nAnything I should be doing differently to define the async job handler? Load it in a `Proc` or something, so it isn't evaluated during deploy notifications?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/airbrake/airbrake/issues/comments/73305589","html_url":"https://github.com/airbrake/airbrake/issues/311#issuecomment-73305589","issue_url":"https://api.github.com/repos/airbrake/airbrake/issues/311","id":73305589,"user":{"login":"benarent","id":559288,"avatar_url":"https://avatars.githubusercontent.com/u/559288?v=3","gravatar_id":"","url":"https://api.github.com/users/benarent","html_url":"https://github.com/benarent","followers_url":"https://api.github.com/users/benarent/followers","following_url":"https://api.github.com/users/benarent/following{/other_user}","gists_url":"https://api.github.com/users/benarent/gists{/gist_id}","starred_url":"https://api.github.com/users/benarent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benarent/subscriptions","organizations_url":"https://api.github.com/users/benarent/orgs","repos_url":"https://api.github.com/users/benarent/repos","events_url":"https://api.github.com/users/benarent/events{/privacy}","received_events_url":"https://api.github.com/users/benarent/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T20:20:27Z","updated_at":"2015-02-06T20:20:27Z","body":"@emcgee I'm sending around to team for an update. "}}