Skip to content

Commit 8ff2f28

Browse files
committed
other sensor
1 parent fc37447 commit 8ff2f28

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/ansisql/operator.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ func (o *QuerySensor) RunTask(ctx context.Context, p *pipeline.Pipeline, t *pipe
7474
for {
7575
select {
7676
case <-timeout:
77+
if printerExists {
78+
fmt.Fprint(printer, "Sensor timed out after 24 hours")
79+
}
7780
return errors.New("Sensor timed out after 24 hours")
7881
default:
7982
if querier, ok := conn.(interface {

0 commit comments

Comments
 (0)