Can't understand priority

Questions and answers on how to get the most out of FFAStrans
Post Reply
djv6ru
Posts: 1
Joined: Tue Nov 19, 2024 3:05 pm

Can't understand priority

Post by djv6ru »

Hello

I have a single host setup and I am posting jobs to the api.
I have included the priority to post body like this:
"priority": "1"

I am printint %i_job_priority% to file, to monitor if the priority from post is actually considered, but the printed priority value is always the one that set in the workflow properties, so the priority from the api post is ignored it seems.

Am I completely missing the point or working principles of priority argument?
admin
Site Admin
Posts: 1680
Joined: Sat Feb 08, 2014 10:39 pm

Re: Can't understand priority

Post by admin »

Hi djv6ru,

Thank you for using FFAStrans and welcome to the forum!

This is a bug :-( But thanks for reporting. To work around the problem (until a new release is out) you could try and put a priority change to the job right after you get the job id. That should work. There might be a small delay (2-3 secs) before it's fully updated to the new prio.

Code: Select all

{
    "action": "priority",
    "value": 1
}
PUT to /api/v2/jobs/<job_id>

-steinar
Post Reply