{"action":"created","issue":{"url":"https://api.github.com/repos/mperham/sidekiq/issues/2888","repository_url":"https://api.github.com/repos/mperham/sidekiq","labels_url":"https://api.github.com/repos/mperham/sidekiq/issues/2888/labels{/name}","comments_url":"https://api.github.com/repos/mperham/sidekiq/issues/2888/comments","events_url":"https://api.github.com/repos/mperham/sidekiq/issues/2888/events","html_url":"https://github.com/mperham/sidekiq/issues/2888","id":141428144,"number":2888,"title":"Jobs in batches in Sidekiq Pro run but stay marked as \"pending\"","user":{"login":"thatmoodyguy","id":20971,"avatar_url":"https://avatars.githubusercontent.com/u/20971?v=3","gravatar_id":"","url":"https://api.github.com/users/thatmoodyguy","html_url":"https://github.com/thatmoodyguy","followers_url":"https://api.github.com/users/thatmoodyguy/followers","following_url":"https://api.github.com/users/thatmoodyguy/following{/other_user}","gists_url":"https://api.github.com/users/thatmoodyguy/gists{/gist_id}","starred_url":"https://api.github.com/users/thatmoodyguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatmoodyguy/subscriptions","organizations_url":"https://api.github.com/users/thatmoodyguy/orgs","repos_url":"https://api.github.com/users/thatmoodyguy/repos","events_url":"https://api.github.com/users/thatmoodyguy/events{/privacy}","received_events_url":"https://api.github.com/users/thatmoodyguy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-03-16T23:08:58Z","updated_at":"2016-03-17T00:34:28Z","closed_at":null,"body":"I'm using Sidekiq Pro's batches feature to generate a series of batched jobs, and all of the jobs in the batch execute (each job sends a message that I can see, so I know they're running), but the batch still indicates that all the jobs are pending, and the complete callback never fires.  What am I missing?"},"comment":{"url":"https://api.github.com/repos/mperham/sidekiq/issues/comments/197622413","html_url":"https://github.com/mperham/sidekiq/issues/2888#issuecomment-197622413","issue_url":"https://api.github.com/repos/mperham/sidekiq/issues/2888","id":197622413,"user":{"login":"mperham","id":2911,"avatar_url":"https://avatars.githubusercontent.com/u/2911?v=3","gravatar_id":"","url":"https://api.github.com/users/mperham","html_url":"https://github.com/mperham","followers_url":"https://api.github.com/users/mperham/followers","following_url":"https://api.github.com/users/mperham/following{/other_user}","gists_url":"https://api.github.com/users/mperham/gists{/gist_id}","starred_url":"https://api.github.com/users/mperham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mperham/subscriptions","organizations_url":"https://api.github.com/users/mperham/orgs","repos_url":"https://api.github.com/users/mperham/repos","events_url":"https://api.github.com/users/mperham/events{/privacy}","received_events_url":"https://api.github.com/users/mperham/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T00:34:28Z","updated_at":"2016-03-17T00:34:28Z","body":"Well, there's the batch middleware.  I can't explain why it's not working for you.  You're seeing the exact behavior as if the server middleware was not running.  If the Web UI shows XX jobs pending, that means the client middleware is running correctly.  The server middleware subtracts from pending and fires the callback, which is exactly what isn't working for you."}}