mirror of
https://github.com/moby/buildkit.git
synced 2026-08-05 07:10:23 +00:00
fix: 20 sec timeout for write to disc too short
20 sec stall on an platter old hdd is not unexpected. Nor is 20s write on a low-tier cloud environment drive unexpected. 300s should however be enough to tell the difference between crappy hardware and actual failure. fixes #4327 Signed-off-by: Dennis Haney <davh@davh.dk>
This commit is contained in:
@@ -198,7 +198,7 @@ func (s *Solver) recordBuildHistory(ctx context.Context, id string, req frontend
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancelCause(context.Background())
|
||||
ctx, _ = context.WithTimeoutCause(ctx, 20*time.Second, errors.WithStack(context.DeadlineExceeded))
|
||||
ctx, _ = context.WithTimeoutCause(ctx, 300*time.Second, errors.WithStack(context.DeadlineExceeded))
|
||||
defer cancel(errors.WithStack(context.Canceled))
|
||||
|
||||
var mu sync.Mutex
|
||||
|
||||
Reference in New Issue
Block a user