elixir-cloud-aai / tesk-api

GA4GH TES API Service that translates tasks into Kubernetes Batch API calls
Apache License 2.0
7 stars 18 forks source link

Implementing the ListTasks filter by name prefix #24

Open m4nu56 opened 3 years ago

m4nu56 commented 3 years ago

Hi, I'd like to thank you for all the work you've made on this TESK project. It's tremendous.

We would like to implement the ListTaks name_prefix filter parameter of the TaskService.

Filter the list to include tasks where the name matches this prefix. If unspecified, no task name filtering is done

I noticed that it doesn't seem to be possible in the built-in methods of Kubernetes CLI nor the java client to filter for a job or pod name matching a prefix.

Do you have plan on implementing this feature already ? And did you already have thought of how you want it to be done ?

For a quick solution I thought of just filtering the tasks returned in Java.

I'll be happy to work on this and open a PR if you're open to it.