Closed mschnepf closed 4 years ago
Hi @mschnepf ,
thanks for the PR, appreciate it!
This is actually very useful as status querying can get really slow on some systems. I hope you don't mind that I added another commit to use the -limit
option only for htcondor > v8.3.3. If you're fine with that change, I can merge.
I just saw that condor_q
has the same option, also since v8.3.3. Since we know the maximum number of jobs to expect in the response of condor_q
(== len(job_ids)
), I don't see why we shouldn't add -limit
here as well. Objections?
Good idea to check which version of HTCondor supports this feature. It worked always for me. :-)
I will add the -limit
option also to HTCondor condor_q
command.
@mschnepf Looks like you committed a different local change.
condor_history scans per default the complete history. The option
-limit
stopscondor_history
after it founds the given number. This reduces the time to check the status of old jobs.