HangfireIO / HangfireIO/Hangfire
Feature request: QueueAttribute - Support passing a Func<ElectStateContext, string> to determine queue name at runtime
- Dominant language
- C#
- Stars
- 10.1k
- Forks
- 1.8k
- Avg merge
- 1h 19m
- Merged PRs (30d)
- 1
Description
Currently the QueueAttribute allows to specify a hardcoded queue name per job.
In our setup we have a large number of jobs spread out over 4 or so queues.
It would be nice if Hangfire could support getting the queue name at runtime, depending on the job name for example.
I've written a custom attribute to accomplish this but I don't see a reason why Hangfire can't support this out of the box?
Contributor guide
Research direction
Start by locating QueueAttribute and the queue-selection entry points in Hangfire, then compare the requested Func behavior with the existing hardcoded queue handling. Define completion as runtime queue selection supporting the stated job scenarios, with relevant behavior covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100