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

Implement admin access to job list #12

Open
lukasjelonek opened this issue Nov 22, 2021 · 1 comment
Open

Implement admin access to job list #12

lukasjelonek opened this issue Nov 22, 2021 · 1 comment

Comments

@lukasjelonek
Copy link
Member

Add a secure endpoint for job management (list, restart, delete) or implement some other way to obtain and manipulate the jobs.

Required output:

  • Job configuration
  • Access to job files
@lukasjelonek
Copy link
Member Author

lukasjelonek commented Nov 23, 2021

Suggestion:

Add aditional endpoints, e.g.

/admin/jobs
GET -> List all jobs, Output the same as the current get jobs endpoint, but without the requirement to provide id-secret pairs. Pagination might be a good feature for this endpoint

/admin/jobs/{jobid} or
GET -> Get job details, including the configuration and the list of links to the files of this job
DELETE -> Remove job

/admin/jobs/{jobid}/restart
POST -> Restart the job

If a gRPC-style API is preferred over REST then the actions might be named:

/listAllJobs -> No params

/getJobDetails, /deleteJob, /restartJob -> The jobid as a string parameter would be sufficient

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