Merge pull request #2931 from YchauWang/wyc-runtime-shim2

runtime# make sure the "Shutdown" trace span have a correct end
This commit is contained in:
Chelsea Mafrica
2021-11-04 11:33:22 -07:00
committed by GitHub

View File

@@ -935,6 +935,10 @@ func (s *service) Shutdown(ctx context.Context, r *taskAPI.ShutdownRequest) (_ *
s.mu.Lock()
if len(s.containers) != 0 {
s.mu.Unlock()
span.End()
katatrace.StopTracing(s.rootCtx)
return empty, nil
}
s.mu.Unlock()