I think that's not currently supported, but you can simply call get_all_ex
with the list of the subproject IDs...
Hi SuccessfulKoala55 , Thank you for your reply.
I understand that this is an unsupported feature.
Hi SuccessfulKoala55 , Thank you for your reply.
It works as per your comment.
Is it possible to count total_tasks by specifying subprojects?
(only counts tasks in the specified subprojects, not all subprojects)
` example)
project data:
id=XXX name=ProjectA total_tasks=15
id=YYY name=ProjectA/SUB1 total_tasks=10
id=ZZZ name=ProjectA/SUB2 total_tasks=5
get_all_ex.request:
id="XXX","YYY"
get_all_ex.response:
id=XXX name=ProjectA total_tasks=10
id=YYY name=ProjectA/SUB1 total_tasks=10 `
Hi SuccessfulKoala55 , Thank you for your reply.
We are customizing the clearml-web UI.
I would like to change the project to be displayed when selecting the project on the left menu so that only the specified project can be displayed.
Project information can be obtained with the following API.projects.get_all_ex
Since the Request has an ID, we were able to narrow down the projects by specifying the project ID.
However, stats.active.total_tasks
counts tasks outside of the specified project.
How can I get stats.active.total_tasks
only for a project with a given id?
What exactly do you want to get? Using get_all_ex is not recommend as it is intended for the UI use and might introduce breaking changes on any release...
total_tasks
should count the tasks only under the project IDs passed to the call (including all subprojects) - do you see a different behaviour?