HangfireIO / HangfireIO/Hangfire

[Hangfire] Set a priority on a job

Open
#2,109 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
10.1k
Forks
1.8k
Avg merge
1h 19m
Merged PRs (30d)
1

Description

Hello everybody,

I have a simple question for you :)

Actually, i'm trying to set a priority on a job (not a queue) and I'm wondering if it is really possible.

I mean, there is the "Queue" attribute that takes 2 params (first is the queue name, and the second is the Order), but I don't think it works like it should be.

I'd like to have something like [Queue("myqueue", Order = "{2}"] where "{2}" corresponds to the 3rd params of the method:

`public string ExecuteWithParameters(PerformContext context, object data, int priorityId, string jobName = "my job name")`

Do you know if it's something possible?

Thanks by advance.

Regards.

Contributor guide

Open the contributing guide

Research direction

Start by reading the Queue attribute behavior described in the issue and checking how its Order value relates to the ExecuteWithParameters method arguments. Determine whether priority based on the priorityId parameter is supported; done would require a clearly defined behavior and an agreed implementation or documented limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.