Skip to content

Commit

Permalink
do not silently ignore errors in ActivityWorker.poll
Browse files Browse the repository at this point in the history
  • Loading branch information
vroldanbet committed Sep 20, 2023
1 parent e7f0218 commit ec90b5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/worker/activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ func (aw *ActivityWorker) poll(ctx context.Context, timeout time.Duration) (*tas
if errors.Is(err, context.DeadlineExceeded) {
return nil, nil
}

return nil, err
}

return task, nil
Expand Down

0 comments on commit ec90b5b

Please sign in to comment.