Fix bug in the in_progress part of sidekiq macro