Sync branch magefile with main #104308
@ -52,8 +52,8 @@ func (ou *OutputUploader) OutputProduced(taskID, filename string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ou *OutputUploader) Run(ctx context.Context) {
|
func (ou *OutputUploader) Run(ctx context.Context) {
|
||||||
log.Info().Msg("output uploader: running")
|
log.Debug().Msg("output uploader: running")
|
||||||
defer log.Info().Msg("output uploader: shutting down")
|
defer log.Debug().Msg("output uploader: shutting down")
|
||||||
|
|
||||||
wg := sync.WaitGroup{}
|
wg := sync.WaitGroup{}
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
|
@ -133,7 +133,7 @@ func (ub *UpstreamBufferDB) Close() error {
|
|||||||
ub.wg.Wait()
|
ub.wg.Wait()
|
||||||
|
|
||||||
// Attempt one final flush, if it's fast enough:
|
// Attempt one final flush, if it's fast enough:
|
||||||
log.Info().Msg("upstream buffer shutting down, doing one final flush")
|
log.Debug().Msg("upstream buffer shutting down, doing one final flush")
|
||||||
flushCtx, ctxCancel := context.WithTimeout(context.Background(), flushOnShutdownTimeout)
|
flushCtx, ctxCancel := context.WithTimeout(context.Background(), flushOnShutdownTimeout)
|
||||||
defer ctxCancel()
|
defer ctxCancel()
|
||||||
if err := ub.Flush(flushCtx); err != nil {
|
if err := ub.Flush(flushCtx); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user