mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #1001] [FEATURE REQUEST] About custom retry... #2506
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#2506
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Flipped199 on GitHub (Jan 3, 2025).
Original GitHub issue: https://github.com/hibiken/asynq/issues/1001
Originally assigned to: @hibiken, @kamikazechaser on GitHub.
Hello,
I’ve been using Asynq and I think it’s an excellent library! However, I have a small question regarding its design, specifically about the retry strategy. I noticed that the retry configuration seems to be set globally at the server level. While I understand that tasks can be distinguished by their Type(), I was wondering why custom retry options aren’t designed to be configured directly on the task itself. Wouldn’t this make it more flexible and easier to use?
Thank you for your time!
@armistcxy commented on GitHub (Mar 5, 2025):
According to me, having a centralized place as
RetryDelayFuncis much easier when you want to modify how to calculate delay for each of themFor example I have two categories for task (each category might contain more than one type of task) and I want to calculate delay for each of them
If you want more specific set up for each task, use option
asynq.ProcessInorasynq.ProcessAt