mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 15:35:55 +03:00
[GH-ISSUE #411] [BUG] always retry and report handler not found #2208
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#2208
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 @ericdong2012 on GitHub (Mar 5, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/411
Originally assigned to: @hibiken on GitHub.
When I send multiple messages to the same type, I find that the message will directly enter the retry, and the error handler not found will be reported. What is the possible reason
@hibiken commented on GitHub (Mar 6, 2022):
@ericdong2012 Thank you for opening an issue.
Looking at the error messages, it seems that you are running the Server to consume task from a queue, but handler for task with type
"command:server:192.168.19.128"is not registered.If you could provide a code snippet for your
ServerandServeMux, I can provide more details 👍@ericdong2012 commented on GitHub (Mar 6, 2022):
thanks for you reply, here are some codes:
// execCmd
@ericdong2012 commented on GitHub (Mar 6, 2022):
At present, I only use the default queue to realize different types through different IP addresses. Will there be any problems in this way, and should I design a queue with different IP addresses
@hibiken commented on GitHub (Mar 6, 2022):
@ericdong2012 thanks for providing more details!
Does the value of
localipused in this linematch the value used for the string for task types?
If your tasks have dynamic IP address in their task type, you can call the
HandleFuncwith just the prefix (since it does the prefix match to route task to a registered handler func).@ericdong2012 commented on GitHub (Mar 7, 2022):
Thanks for you reply .
After my test, I found that, as you initially said, I created a new client (consume) in push2mq in the server, but my design scenario is like this. The new server processes the messages of the upper client, parses the messages, processes other logic, and finally creates a new client(consume) and sends the results to the type specified by other servers. What I want to know is, How should this scenario be handled? Look forward to your reply.
@hibiken commented on GitHub (Mar 8, 2022):
@ericdong2012 are you still seeing the "handler not found" error?
If not, would you mind starting a discussion here and close this issue?
Either way, I think I need a more detailed explanation (e.g. a diagram or high level overview of your use case) to understand the issue :)