mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #468] [FEATURE REQUEST] Expose taskID when occurring Duplicated Error #1230
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#1230
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 @linhbkhn95 on GitHub (May 17, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/468
Originally assigned to: @hibiken on GitHub.
Is your feature request related to a problem? Please describe.
asynqonly common errorDuplicated TaskIDwhen the created task is duplicated. So, If we use uniqueID via generating likeblockNumberthen we difficult to detect taskID which is duplicate.Describe the solution you'd like
Currently,
asynquses error const as like belowI think we can use error struct to catching taskID.
@hibiken commented on GitHub (May 18, 2022):
@linhbkhn95 thank you for creating an issue.
If you are getting
ErrTaskIDConflicterror, you are providing a custom ID usingTaskIDoption. IMO it's redundant to include the ID in the error message, since user just calledEnqueuewith the ID.@linhbkhn95 commented on GitHub (May 18, 2022):
I think, almost case is duplicated ID from using a custom ID, So wrapping the ID into an error will provide insight to the user. Moreover, If users don't use a custom ID, sometimes, they use an ID generated for tracing. So, display ID duplicated is useful.