mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-06 23:30:29 +00:00
chore(deps): update dependencies (#1351)
Co-authored-by: Renovate Bot <[email protected]>
This commit is contained in:
1 parent
c6ca020281
commit
8dd3776014
11 files changed
+52
-47
No files matched your search
@@ -879,7 +879,10 @@ func (cr *containerReference) waitForCommand(ctx context.Context, resp client.Hi
|
||||
// truncate the tail of the log. The goroutine exits once the hijacked
|
||||
// stream is closed by resp.Close() in the caller's defer.
|
||||
select {
|
||||
case <-cmdResponse:
|
||||
case err := <-cmdResponse:
|
||||
if err != nil {
|
||||
logger.Debugf("Failed to drain command output after cancellation: %v", err)
|
||||
}
|
||||
case <-time.After(drainGracePeriod):
|
||||
logger.Warn("Timed out draining command output after cancellation")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user