This comes from the tracing code’s Scope.reset_current_trace(token) call in Trace.finish(), because the token was set in the parent task’s context but is being reset in the spawned Task’s context. To ...
Mypyc can optionally include logging in the generated code that produces a sampled trace of various events or operations that happen during execution. For example, you can use this to find code ...