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

Expose current HystrixCommand to fns #158

Merged

Conversation

daveray
Copy link
Contributor

@daveray daveray commented Jul 26, 2013

@ohpauleez noticed that the current HystrixCommand was inaccessible from
:fallback-fn. This change introduces a dynamic var, command that
exposes the currently running HystrixCommand instance so it can be
interrogated as needed. At some point, if the dynamic var doesn't work
out or proves error-prone or unwieldy, we may introduce alternative
functions that explicitly pass the function as the first arg.

@ohpauleez noticed that the current HystrixCommand was inaccessible from
:fallback-fn. This change introduces a dynamic var, *command* that
exposes the currently running HystrixCommand instance so it can be
interrogated as needed. At some point, if the dynamic var doesn't work
out or proves error-prone or unwieldy, we may introduce alternative
functions that explicitly pass the function as the first arg.
@cloudbees-pull-request-builder

Hystrix-pull-requests #32 FAILURE
Looks like there's a problem with this pull request

benjchristensen added a commit that referenced this pull request Jul 26, 2013
@benjchristensen benjchristensen merged commit a911859 into Netflix:master Jul 26, 2013
@ohpauleez
Copy link

Are you guys able to squeeze this into a release soon? I'd like to switch out my hystrix shim back to the original hystrix-clj for my production code.

@benjchristensen
Copy link
Contributor

I plan on releasing Hystrix 1.3 later this week which includes this change. 

-- 
Ben Christensen - Edge Service Platform Team
+1.310.782.5511 @benjchristensen

On August 1, 2013 at 6:43:29 AM, Paul deGrandis (notifications@github.com) wrote:

Are you guys able to squeeze this into a release soon? I'd like to switch out my hystrix shim back to the original hystrix-clj for my production code.


Reply to this email directly or view it on GitHub.

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.

5 participants