Allow user to define a max retry count for a task

This commit is contained in:
Ken Hibino
2019-12-21 07:42:32 -08:00
parent fc66aaa47f
commit 4229073a24
4 changed files with 153 additions and 25 deletions

View File

@@ -12,12 +12,8 @@ TODOs:
- [P0] Go docs + CONTRIBUTION.md + Github issue template + License comment
- [P0] Redis Sentinel support
- [P1] Add Support for multiple queues and priority
- [P1] User defined max-retry count
*/
// Max retry count by default
const defaultMaxRetry = 25
// Task represents a task to be performed.
type Task struct {
// Type indicates the kind of the task to be performed.