kube-HPC / hkube

🐟 High Performance Computing over Kubernetes - Core Repo 🎣
http://hkube.io
MIT License
305 stars 20 forks source link

User ordering for pending jobs - pipeline-driver-queue #1449

Closed maty21 closed 2 years ago

maty21 commented 2 years ago

Is your feature request related to a problem? Please describe.

We would like to add the ability for changing job's orders for jobs that have not started yet, this feature will add the flexibility needed in case Hkube's priority suggestion is not consistent with the user need's

This feature should support the follows :

Describe the solution you'd like Exposed API:

post
preferedjob/
jobs: [job1,job2]
adds a set of jobs as last among the prioritized jobs

preferredjob?before=otherJobid
jobs: [job1,job2]
adds a set of jobs to preferred, right after another job. If that job does not exist, add before all  preferred jobs

preferredjob?before=0
jobs: [job1,job2]
adds a set of jobs  before all  preferred jobs

get
preferredjob/
get list of preferred jobs according to their execution order

delete
preferredjob/
jobs: [job1,job2]
remove a set of jobs from preferred jobs

Ordered pipeline driverqueue

tamir321 commented 2 years ago

tested on systemVersion: "v2.3.18", fullSystemVersion: "v2.3.18-1648462268639",