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

current and previous contexts are stored in a thread local variable. #84

Merged
merged 4 commits into from
May 19, 2015

Conversation

mattcamuto
Copy link

context is now thread safe. can be used in a system like sidekiq

@mnelson
Copy link
Contributor

mnelson commented May 19, 2015

Looks like we need to check for the existence of the Thread#thread_variable_set and backup to Thread.current#[] if it's not present.

@mattcamuto
Copy link
Author

@mnelson Just saw this. We will make these changes soon to be compatible pre 2.0

@mnelson
Copy link
Contributor

mnelson commented May 19, 2015

Great, thanks. Everything else looks good.

Matt Camuto added 2 commits May 19, 2015 14:39
…does not respond to thread_variable_(g|s)et methods.
…does not respond to thread_variable_(g|s)et methods.

Fix Spelling Error
@mattcamuto
Copy link
Author

@mnelson I think this is good to go all is green. Please accept if all good.

mnelson added a commit that referenced this pull request May 19, 2015
current and previous contexts are stored in a thread local variable.
@mnelson mnelson merged commit 5e64772 into instacart:master May 19, 2015
@mnelson
Copy link
Contributor

mnelson commented May 19, 2015

Thanks so much. Merged and up at https://github.com/taskrabbit/makara/releases/tag/v0.3.3

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.

2 participants