Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show tenant in sidekiq interface #17

Open
ameboide opened this issue Mar 28, 2017 · 0 comments
Open

Show tenant in sidekiq interface #17

ameboide opened this issue Mar 28, 2017 · 0 comments

Comments

@ameboide
Copy link

When looking at the sidekiq web interface, you can only see the tenant of a certain job in the individual job details from the retries/scheduled/dead list. That makes it hard to identify a running or enqueued job.

I ended up adding a small monkey patch to show the tenant as one of the arguments in my apartment initializer, but don't know if that's the best approach or where would you place it in this gem.

module Sidekiq
  module JobApartmentExtensions
    def display_args
      [@item['apartment']].compact + super
    end
  end

  class Job
    prepend JobApartmentExtensions
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant