Skip to content

Commit

Permalink
retry-policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Samra Belachew committed Jul 5, 2023
1 parent fac22d4 commit db83854
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/neptune/workflows/internal/pr/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ func (r *Runner) shouldProcessRevision(prRevision revision.Revision) bool {
}

func (r *Runner) notifyOnTimeout(ctx workflow.Context, prRevision revision.Revision) {
ctx = workflow.WithRetryPolicy(ctx, temporal.RetryPolicy{
MaximumAttempts: 3,
})
createCommentRequest := activities.CreateCommentRequest{
Repo: prRevision.Repo,
PRNumber: r.PRNumber,
Expand Down

0 comments on commit db83854

Please sign in to comment.