Skip to content

Commit a78bb5e

Browse files
committed
Fix --follow not killing the progress indicator
Fixes --follow not stopping the progress indicator. Also includes a nice message to indicate what is happening because even after we create the agent task, there's a period of time where we poll and receive nothing as the task session starts. We want there to be some sort of feedback in that period of time to not make the user panic and think it has hanged.
1 parent 67bf27b commit a78bb5e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/cmd/agent-task/create/create.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ func createRun(opts *CreateOptions) error {
166166
}
167167

168168
if opts.Follow {
169+
opts.IO.StopProgressIndicator()
170+
fmt.Fprintf(opts.IO.Out, "Displaying session logs for job %s. Press Ctrl+C to stop.\n", job.ID)
169171
return followLogs(opts, client, job.SessionID)
170172
}
171173

0 commit comments

Comments
 (0)