Open utf opened 5 months ago
Hi @utf . That could indeed be useful. In the jobcontroller, there is already the count_jobs and count_flows methods (https://github.com/Matgenix/jobflow-remote/blob/develop/src/jobflow_remote/jobs/jobcontroller.py#L2397 and https://github.com/Matgenix/jobflow-remote/blob/develop/src/jobflow_remote/jobs/jobcontroller.py#L2460) to do it so it should not be too complex to add it to the cli. Maybe it could be "jf job count" and "jf flow count" ? instead of "jf job list --count" and "jf flow list --count" ?
I think I can quickly add it, it should be quite easy to do. Let me know if you instead prefer using this as a way to start working your way thorugh jobflow-remote's code.
Thanks for the suggestions. I'd be quite interested to implement it myself as an opportunity to dig further into the code!
Great, thanks! Let me know if you need any clarification. I believe that the CLI section is not the most documented.
It can be useful to know how many jobs you have remaining. I'm potentially interested in implementing this if I have some time.