Add Prefix parameter to zoautil_py.jobs.listing #63
-
When using regular "jls", it is possible to find jobs on the system with the job prefix. I am not seeing this option in the corresponding python module zoautil_py.jobs.listing. The only parameter options available are job_id or job_owner. I tried both "prefix" and "job_prefix" in case it was a documentation error but both failed. It would be very useful to be able to list all jobs by prefix through this python module. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Here's a bit of sample code that should get you on your way. It's not as intuitive as you're describing it to be, and perhaps the takeaway is that ZOAU needs to keyword this for usability sake, but this is a bandage: For example, if you were to run a listing looking for all jobs starting with an O you would typically run this: giving me this result:
This code snippet gives me:
Hope this helps! |
Beta Was this translation helpful? Give feedback.
Here's a bit of sample code that should get you on your way. It's not as intuitive as you're describing it to be, and perhaps the takeaway is that ZOAU needs to keyword this for usability sake, but this is a bandage:
For example, if you were to run a listing looking for all jobs starting with an O you would typically run this:
jls '/*/O*'
giving me this result:
OAMSTC OAM STC03939 AC ?
In Python, that would look like this:
This code snippet gives me:
Hope this helps!