Skip to content

Commit

Permalink
admission: include context error in work queue log
Browse files Browse the repository at this point in the history
Informs cockroachdb#121574.

Release note: None.
  • Loading branch information
aadityasondhi committed Apr 2, 2024
1 parent 49173f4 commit f35d620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/admission/work_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ func (q *WorkQueue) Admit(ctx context.Context, info WorkInfo) (enabled bool, err
q.metrics.incErrored(info.Priority)
deadline, _ := ctx.Deadline()
return true,
errors.Newf("work %s deadline already expired: deadline: %v, now: %v",
errors.Wrapf(ctx.Err(), "work %s context canceled before queueing: deadline: %v, now: %v",
q.workKind, deadline, startTime)
}
// Push onto heap(s).
Expand Down

0 comments on commit f35d620

Please sign in to comment.