mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[PR #1031] [MERGED] servemux: NotFoundHandler returns ErrHandlerNotFound error #1998
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#1998
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?
📋 Pull Request Information
Original PR: https://github.com/hibiken/asynq/pull/1031
Author: @dnaeon
Created: 3/7/2025
Status: ✅ Merged
Merged: 11/4/2025
Merged by: @kamikazechaser
Base:
master← Head:feat/err-not-found📝 Commits (1)
0eead63servemux: NotFoundHandler returns ErrHandlerNotFound error📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
servemux.go(+5 -1)📄 Description
The
asynq.NotFoundHandlerreturns an error, which wrapsasynq.ErrHandlerNotFounderror.This allows the use of middlewares, which can then inspect the returned error and decide to silence them, thus avoiding a retry.
Example middleware, which ignores
handler not found for task.Use this middleware with a multiplexer.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.