Skip to content

Commit

Permalink
feat: log backoffSteps, so we can know if an error will retry
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Aug 2, 2021
1 parent 4a6837c commit 78e1b32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runner/sidecar/sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func connectSources(ctx context.Context, toMain func(context.Context, []byte) er
if err == nil {
return nil
}
logger.Error(err, "⚠ →", "source", sourceName)
logger.Error(err, "⚠ →", "source", sourceName, "backoffSteps", backoff.Steps)
if backoff.Steps <= 0 {
withLock(func() { step.Status.SourceStatuses.IncrErrors(sourceName, replica) })
return err
Expand Down Expand Up @@ -82,7 +82,7 @@ func connectSources(ctx context.Context, toMain func(context.Context, []byte) er
} else if x := s.HTTP; x != nil {
sources[sourceName] = httpsource.New(sourceName, f)
} else if x := s.S3; x != nil {
if y, err := s3source.New(ctx, kubernetesInterface, namespace, pipelineName, stepName, sourceName, *x, f, leadReplica()); err!=nil{
if y, err := s3source.New(ctx, kubernetesInterface, namespace, pipelineName, stepName, sourceName, *x, f, leadReplica()); err != nil {
return err
} else {
sources[sourceName] = y
Expand Down

0 comments on commit 78e1b32

Please sign in to comment.