mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 23:45:52 +03:00
[GH-ISSUE #745] Ineffectual error assignment in processor perform defer callback #2390
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#2390
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 @khun84 on GitHub (Sep 20, 2023).
Original GitHub issue: https://github.com/hibiken/asynq/issues/745
If I read the code correctly, I think the error assignment in line 427 as well as line 429 are ineffectual as the
erris later reassigned at line 431.github.com/hibiken/asynq@6a7bf2ceff/processor.go (L426-L433)Am I missing anything here or its potentially a bug? 🤔
@kamikazechaser commented on GitHub (Sep 20, 2023):
Thanks for reporting this. I think you are onto something here, It is definitely reassigned!
Pinging @linhbkhn95 on this.
I don't think so. The debug.Stack() message will still be more informative that the ones in the if else block. But good to fix such confusions. Though this change has not been released yet in any case.
@linhbkhn95 commented on GitHub (Sep 22, 2023):
Thanks @khun84 for reporting this issue. good catch.
It will not make potential bugs. But it makes it confusing. So, I will make a PR to improve it.
@linhbkhn95 commented on GitHub (Oct 8, 2023):
I just made PR to fix it
https://github.com/hibiken/asynq/pull/758
@kamikazechaser Please review it