Commit c8d2fec Matt Jacobs
committed
1 parent f0c4c90 commit c8d2fec Copy full SHA for c8d2fec
File tree 1 file changed +2
-2
lines changed
hystrix-core/src/main/java/com/netflix/hystrix
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -512,15 +512,15 @@ private Observable<R> getRunObservableDecoratedForMetricsAndErrorHandling(final
512
512
513
513
@ Override
514
514
public void call (Subscriber <? super R > s ) {
515
- executionHook .onThreadStart (_self );
516
- executionHook .onRunStart (_self );
517
515
if (isCommandTimedOut .get () == TimedOutStatus .TIMED_OUT ) {
518
516
// the command timed out in the wrapping thread so we will return immediately
519
517
// and not increment any of the counters below or other such logic
520
518
s .onError (new RuntimeException ("timed out before executing run()" ));
521
519
} else {
522
520
// not timed out so execute
523
521
try {
522
+ executionHook .onThreadStart (_self );
523
+ executionHook .onRunStart (_self );
524
524
threadPool .markThreadExecution ();
525
525
// store the command that is being run
526
526
endCurrentThreadExecutingCommand .set (Hystrix .startCurrentThreadExecutingCommand (getCommandKey ()));
You can’t perform that action at this time.
0 commit comments