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

Problem with the Thread.current in the Configuration #66

Open
theDisco opened this issue Apr 25, 2016 · 1 comment
Open

Problem with the Thread.current in the Configuration #66

theDisco opened this issue Apr 25, 2016 · 1 comment

Comments

@theDisco
Copy link

We are using the gem in a rails application and since we have switched from Unicorn to Passenger we have noticed that our desk integration stopped working. We've pinned down the problem to the Desk::Configuration module where you assign the config values to the Thread.current. Do you have a reason to do so? If yes how can you overcome the limitations of using your gem in a multithreaded application?

@jonahwh
Copy link
Contributor

jonahwh commented Dec 21, 2018

We ran into this same issue when using Sidekiq. The Sidekiq threads don't get the config specified in our initializer. As a temporary workaround we just configured desk inside of our Sidekiq workers...

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

2 participants