You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if you comment out Thread.sleep(10), then on my machine the commands execute fast enough that they can be observed on the main thread and then the context is preserved.
Expected output:
context = DummyCommand[SUCCESS][XXX ms]x3
Actual output:
context = DummyCommand[SUCCESS][XXX ms]
The text was updated successfully, but these errors were encountered:
HystrixContextScheduler wraps the first schedule call, however it sends the raw scheduler (in HystrixContextFunc2) when calling the action.
If that action needs to schedule something, it will lose the context.
Here's a small demo:
if you comment out
Thread.sleep(10)
, then on my machine the commands execute fast enough that they can be observed on the main thread and then the context is preserved.Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: