{"action":"created","issue":{"url":"https://api.github.com/repos/krisleech/wisper-sidekiq/issues/5","labels_url":"https://api.github.com/repos/krisleech/wisper-sidekiq/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/krisleech/wisper-sidekiq/issues/5/comments","events_url":"https://api.github.com/repos/krisleech/wisper-sidekiq/issues/5/events","html_url":"https://github.com/krisleech/wisper-sidekiq/pull/5","id":83727899,"number":5,"title":"Allow sidekiq_delay and not just delay","user":{"login":"neojin","id":5699,"avatar_url":"https://avatars.githubusercontent.com/u/5699?v=3","gravatar_id":"","url":"https://api.github.com/users/neojin","html_url":"https://github.com/neojin","followers_url":"https://api.github.com/users/neojin/followers","following_url":"https://api.github.com/users/neojin/following{/other_user}","gists_url":"https://api.github.com/users/neojin/gists{/gist_id}","starred_url":"https://api.github.com/users/neojin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neojin/subscriptions","organizations_url":"https://api.github.com/users/neojin/orgs","repos_url":"https://api.github.com/users/neojin/repos","events_url":"https://api.github.com/users/neojin/events{/privacy}","received_events_url":"https://api.github.com/users/neojin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-01T22:41:33Z","updated_at":"2015-11-18T11:50:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/krisleech/wisper-sidekiq/pulls/5","html_url":"https://github.com/krisleech/wisper-sidekiq/pull/5","diff_url":"https://github.com/krisleech/wisper-sidekiq/pull/5.diff","patch_url":"https://github.com/krisleech/wisper-sidekiq/pull/5.patch"},"body":"Hello,\r\n\r\nGreat gem, love it. Today I was having trouble with async calls to the subscriber and I noticed that the jobs are sent to sidekiq via `delay`. This is problematic if you use delayed_jobs and sidekiq in the same project. A workaround to this is to use `sidekiq_delay`, which you can turn on via `Sidekiq.hook_rails!`\r\n\r\nhttps://github.com/mperham/sidekiq/wiki/Delayed-extensions#disabling-extensions\r\n\r\nI'm not sure if there is a better way to do this (maybe there is an internal setting in Sidekiq that can be checked), but just wanted to present one way to fix it.\r\n\r\nIf you wanted to accept this version, I can also write a quick test for it."},"comment":{"url":"https://api.github.com/repos/krisleech/wisper-sidekiq/issues/comments/157688391","html_url":"https://github.com/krisleech/wisper-sidekiq/pull/5#issuecomment-157688391","issue_url":"https://api.github.com/repos/krisleech/wisper-sidekiq/issues/5","id":157688391,"user":{"login":"movstox","id":1857476,"avatar_url":"https://avatars.githubusercontent.com/u/1857476?v=3","gravatar_id":"","url":"https://api.github.com/users/movstox","html_url":"https://github.com/movstox","followers_url":"https://api.github.com/users/movstox/followers","following_url":"https://api.github.com/users/movstox/following{/other_user}","gists_url":"https://api.github.com/users/movstox/gists{/gist_id}","starred_url":"https://api.github.com/users/movstox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/movstox/subscriptions","organizations_url":"https://api.github.com/users/movstox/orgs","repos_url":"https://api.github.com/users/movstox/repos","events_url":"https://api.github.com/users/movstox/events{/privacy}","received_events_url":"https://api.github.com/users/movstox/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T11:50:14Z","updated_at":"2015-11-18T11:50:14Z","body":"ok, i'll give it a try. I'm pretty new to this :)\n\n-- \n\n\nOn 18.11.2015 at 09:06 GMT None wrote:\n> A PR would be great. It needs to be backwards compatible, so check for #perform_async first and use, otherwise fall back to #delay. Maybe check for #sidekiq_delay too as per the original issue.\n> \n> I think the order should be [:perform_async, :sidekiq_delay, :delay].\n> \n> —\n> Reply to this email directly or https://github.com/krisleech/wisper-sidekiq/pull/5#issuecomment-157650213<<view it on GitHub>>."}}