Open mattias-p opened 1 year ago
Talking to @matsstralbergiis we came up with another option:
Configure priority per queue.
This options is superior ot both options 1 and 2 above.
If we do the prioritization based on queues we should remove the test_results.priority field from the database. The behavior of the system would be easier to reason about this way.
Today the
job_create
method has apriority
parameter. Any user can set any priority they like and we trust users not to abuse this. There is no penalty if they do.The priority feature is needed on single-machine Backend installations with both a GUI and a batch client. A job from the GUI ought to be processed as soon as possible instead of waiting in line for the entire batch to finish.
My current understanding is that singular jobs (from job_create) need to run at a higher priority than batch jobs (from batch_create), but that finer granularity than this is not required.
I could think of the these options to improve the situation:
job_create
and set priority per API key. Perhaps there could be a default priority for the API key is omitted.Edit: At first I didn't realize the importance of the priority feature. I have since updated the description with my new understanding.
Stabilization
Tracking issue
Affected interfaces
Incompatibly changed:
Dependencies
None
Overlapping proposals
None