Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
9 tasks done
maty21 opened this issue Nov 16, 2021 · 1 comment
Closed
9 tasks done

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

maty21 opened this issue Nov 16, 2021 · 1 comment

Comments

@maty21
Copy link
Member

maty21 commented Nov 16, 2021

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 :

  • Change the execution order for a specific job or a group of jobs that their execution hasn't started
  • Jobs that their execution order was set by the user, will be executed before all other jobs.
  • Optional: Hkube shall be enabled to operate all the above-mentioned capabilities using HKube's dashboard (@zivglik )

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

  • Create a new queue in the pipeline-driver queue this queue will be cleaned before the existing one
  • for this queue we should add a cursor that references the job placed on the queue
  • create a new API that adds the ability to send an array of jobs after the current cursor
  • the first place on the queue will be cursor: null or cursor: -1
  • optional: creating maybe a new tab that shows the current queued job with the ability to aggregate them by a specific query (@zivglik )
  • optional: drag and drop those groups will change their order (@zivglik )
@maty21 maty21 self-assigned this Nov 16, 2021
@maty21 maty21 added this to the 2.2 milestone Nov 16, 2021
@maty21 maty21 changed the title Order jobs that not started yet User ordering for pending jobs - pipeline-driver-queue Dec 22, 2021
@tamir321
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants