From 19fbd81c8e09a5508f5f005e07bf6bc58b8ab4ac Mon Sep 17 00:00:00 2001 From: sophia Date: Wed, 6 Jul 2022 14:15:18 -0500 Subject: [PATCH] Close UI if it is close-able --- internal/runner/accept.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/runner/accept.go b/internal/runner/accept.go index 89b21f411..a14522a06 100644 --- a/internal/runner/accept.go +++ b/internal/runner/accept.go @@ -221,7 +221,7 @@ func (r *Runner) accept(ctx context.Context, id string) error { // ensure that no more output is writting to the client. log.Info("starting job execution") result, err = r.executeJob(ctx, log, ui, assignment.Assignment.Job, wd) - if ui, ok := ui.(*runnerUI); ok { + if ui, ok := ui.(io.Closer); ok { ui.Close() } log.Debug("job finished", "error", err)