ag-computational-bio / bakta-web-backend

Backend to schedule bakta jobs on a Kubernetes cluster
GNU General Public License v3.0
0 stars 0 forks source link

Implement admin access to job list #12

Open lukasjelonek opened 2 years ago

lukasjelonek commented 2 years ago

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

Required output:

lukasjelonek commented 2 years ago

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