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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make lock container configurable #9

Merged
merged 2 commits into from Jul 18, 2018
Merged

Conversation

rwojsznis
Copy link
Owner

After seeing fork https://github.com/SolarCS/sidekiq-lock and catching up with some books on design ;) I got inspired to make this small addition - it makes gem more extendable - for whatever reason you might need

One would argue why even bother with defining lock method on worker instance in the first place now - but I don't want to introduce any hardcore backward-incompatible changes

I also got curious @ziolmar - did you encountered some issues when using Thread.current while simply spinning few sidekiq processes? What was the use case/scenario? 馃 Eager to share maybe?

@rwojsznis
Copy link
Owner Author

Will merge today either way; you will be able to plug-in something like dry-container in case you're not comfortable with using Thread.current solution; this doesn't break API sooo why not 馃槈

@rwojsznis rwojsznis merged commit 064db93 into master Jul 18, 2018
@rwojsznis rwojsznis deleted the configurable_container branch July 18, 2018 11:57
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

Successfully merging this pull request may close these issues.

None yet

1 participant