Skip to content

Commit

Permalink
feat: decrease priority of event on retry
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe authored and moshloop committed Sep 17, 2024
1 parent e1b1364 commit 339c791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/event_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (events Events) Recreate(ctx context.Context, tx *gorm.DB) error {
Error: event.Error,
Attempts: event.Attempts + 1,
LastAttempt: event.LastAttempt,
Priority: event.Priority,
Priority: event.Priority - 1,
})
}

Expand Down

0 comments on commit 339c791

Please sign in to comment.