Matgenix / jobflow-remote

jobflow-remote is a Python package to run jobflow workflows on remote resources.
https://matgenix.github.io/jobflow-remote/
Other
21 stars 11 forks source link

SUGGESTION: `--count` option for `jf flow list` and `jf job list` #110

Open utf opened 5 months ago

utf commented 5 months ago

It can be useful to know how many jobs you have remaining. I'm potentially interested in implementing this if I have some time.

davidwaroquiers commented 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" ?

gpetretto commented 5 months ago

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.

utf commented 5 months ago

Thanks for the suggestions. I'd be quite interested to implement it myself as an opportunity to dig further into the code!

gpetretto commented 5 months ago

Great, thanks! Let me know if you need any clarification. I believe that the CLI section is not the most documented.