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

Add number of jobs that are currently planned before the current JobRun #11

Open
michaelschnyder opened this issue May 18, 2017 · 1 comment
Milestone

Comments

@michaelschnyder
Copy link
Member

michaelschnyder commented May 18, 2017

Current Idea (as discussed with @olibanjoli)

Add a GET route for jobRuns that returns a sorted list if the parameter beforeJobRunId is supplied. These list should be sorted according the schedulers priorization.

Example:
GET http://jobbr/jobruns?beforeJobRunId would re-use the exact same resource where as

the HEAD call could only return the number of jobs that are currently planned before. See
HEAD http://jobbr/jobruns?beforeJobRunId

The C# Client needs to be adjusted, the corresponding methods could be named

  • GetJobRunsBefore(long JobRunId)
  • GetJobRunsCountBefore(long jobRunId)

Abandoned
Add a /api/queue/[JobRunId] where the client can access the current position and numbers of jobs upfront

Because

  • JobRunId is not a QueueId
  • From the outside view, the related DTO is the JobRun
@michaelschnyder
Copy link
Member Author

How does that sound @samuelmeierzuehlke @sammeidroid?

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

No branches or pull requests

1 participant