Skip to content

Commit

Permalink
Change default task retries to [2, 4, 8, 16, 32]
Browse files Browse the repository at this point in the history
  • Loading branch information
akadusei committed Feb 20, 2024
1 parent f49d8bd commit 673a764
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased] -

### Changed
- Change default task `retries` to `[2, 4, 8, 16, 32]`

## [0.18.1] - 2024-02-14

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/mel/task.cr
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ abstract class Mel::Task
in Indexable
retries.map { |time| time.is_a?(Time::Span) ? time : time.seconds }.to_a
in Nil
[1.second, 2.seconds]
[2.seconds, 4.seconds, 8.seconds, 16.seconds, 32.seconds]
end
end

Expand Down

0 comments on commit 673a764

Please sign in to comment.