Page 1 of 1

Can't understand priority

Posted: Tue Nov 19, 2024 3:13 pm
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?

Re: Can't understand priority

Posted: Tue Nov 19, 2024 11:41 pm
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