Skip to content

Commit f2f4b53

Browse files
authored
Merge pull request #729 from tonistiigi/session-context
llbsolver: keep session for context calls
2 parents ef00d30 + f6a8961 commit f2f4b53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

solver/jobs.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ func (sb *subBuilder) Build(ctx context.Context, e Edge) (CachedResult, error) {
171171
}
172172

173173
func (sb *subBuilder) Context(ctx context.Context) context.Context {
174+
ctx = session.NewContext(ctx, sb.state.getSessionID())
174175
return opentracing.ContextWithSpan(progress.WithProgress(ctx, sb.mpw), sb.mspan)
175176
}
176177

@@ -475,6 +476,7 @@ func (j *Job) Discard() error {
475476
}
476477

477478
func (j *Job) Context(ctx context.Context) context.Context {
479+
ctx = session.NewContext(ctx, j.SessionID)
478480
return progress.WithProgress(ctx, j.pw)
479481
}
480482

0 commit comments

Comments
 (0)