Skip to content

Commit 27001d1

Browse files
committed
return error in activity worker
1 parent 26a2fa6 commit 27001d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/worker/activity.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ func (aw *ActivityWorker) poll(ctx context.Context, timeout time.Duration) (*tas
201201
if errors.Is(err, context.DeadlineExceeded) {
202202
return nil, nil
203203
}
204+
205+
return nil, err
204206
}
205207

206208
return task, nil

0 commit comments

Comments
 (0)