From f6a896157be96c67d28336c04cd3ae8bfa5de79b Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Mon, 19 Nov 2018 15:24:35 -0800 Subject: [PATCH] llbsolver: keep session for context calls Signed-off-by: Tonis Tiigi --- solver/jobs.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/solver/jobs.go b/solver/jobs.go index 371f43199bf0..7932bc5409a1 100644 --- a/solver/jobs.go +++ b/solver/jobs.go @@ -171,6 +171,7 @@ func (sb *subBuilder) Build(ctx context.Context, e Edge) (CachedResult, error) { } func (sb *subBuilder) Context(ctx context.Context) context.Context { + ctx = session.NewContext(ctx, sb.state.getSessionID()) return opentracing.ContextWithSpan(progress.WithProgress(ctx, sb.mpw), sb.mspan) } @@ -475,6 +476,7 @@ func (j *Job) Discard() error { } func (j *Job) Context(ctx context.Context) context.Context { + ctx = session.NewContext(ctx, j.SessionID) return progress.WithProgress(ctx, j.pw) }