mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #1077] [FEATURE REQUEST] Accept regex in mux.HanlderFunc() #2539
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#2539
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 @turisap on GitHub (Sep 29, 2025).
Original GitHub issue: https://github.com/hibiken/asynq/issues/1077
Originally assigned to: @hibiken, @kamikazechaser on GitHub.
Is your feature request related to a problem? Please describe.
We use
aynqand we want to process tasks grouped by type via a single handler, for example:auto:some_name)auto, but in the momentmux.HandlerFunc()does not seem to be accepting sth likeauto:*as a pattern parameterDescribe the solution you'd like
we want to use `mux.HandlerFunc('auto:*', ...) to handle them all as there are quite a lot of those task and we have groups of tasks.
Describe alternatives you've considered
at the moment, I just assign handlers in a loop.
Additional context
In the case of this is not implemented, I am willing to submit a PR if possible
@thomas4019 commented on GitHub (Oct 5, 2025):
@turisap I think it's already possible to do what you want. The
mux.HanlderFunc()does prefix matching as documented here, so you should be able to do this by passing inauto: