Thanks Jan,
That works. I wonder what's different about owner. For example:
$ cq -constraint clusterid==129818875.0
-- Schedd: ldas-grid.ligo-wa.caltech.edu : <10.21.201.20:9618?... @ 06/19/23 09:50:19
OWNERÂÂ BATCH_NAMEÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ SUBMITTEDÂÂ DONEÂÂ RUNÂÂÂ IDLEÂ TOTAL JOB_IDS
detchar omicron crondor - LOW1 5/30 17:34 _ 1 _ 1 129818875.0
Total for query: 1 jobs; 0 completed, 0 removed, 0 idle, 1 running, 0 held, 0 suspended
Total for detchar: 59 jobs; 0 completed, 0 removed, 2 idle, 57 running, 0 held, 0 suspended
Total for all users: 1956 jobs; 0 completed, 0 removed, 173 idle, 1621 running, 162 held, 0 suspended
It's not a problem to quote constraint
Best,
Joe
Hi Joe,
On Sat, 2023-06-17 at 13:33 -0700, Joseph Areeda wrote:ÂI'm working on a python program to find any jobs in a weird state. Long story irrelevant to the question. The point is my question is related to querying Schedd from python not running condor_q from the command line. But easier to demo there
The program will run on an AP with lots of users but I want to constrain the query to the current user.
Constrained with comparison. What am I missing?
$ condor_q -constraint owner=="areeda"
-- Schedd: george.home.areeda.com : <127.0.0.1:9618?... @ 06/17/23 10:36:03
OWNER BATCH_NAMEÂÂÂÂÂ SUBMITTEDÂÂ DONEÂÂ RUNÂÂÂ IDLEÂÂ HOLDÂ TOTAL JOB_IDS
Total for query: 0 jobs; 0 completed, 0 removed, 0 idle, 0 running, 0 held, 0 suspended
Total for areeda: 2 jobs; 0 completed, 0 removed, 0 idle, 2 running, 0 held, 0 suspended
I think you have to quote:
root@mq:~# condor_q-- Schedd: msched.mpifr-be.mkat.karoo.kat.ac.za : <10.98.76.53:9618?... @ 06/19/23 07:46:53OWNER BATCH_NAME SUBMITTED DONE RUN IDLE TOTAL JOB_IDSebarr ID: 360 6/16 13:51 _ 1 _ 1 360.0jbehrend ID: 361 6/16 17:17 _ 1 _ 1 361.0Total for query: 2 jobs; 0 completed, 0 removed, 0 idle, 2 running, 0 held, 0 suspendedTotal for all users: 2 jobs; 0 completed, 0 removed, 0 idle, 2 running, 0 held, 0 suspendedroot@mq:~# condor_q -constraint 'owner=="jbehrend"'-- Schedd: msched.mpifr-be.mkat.karoo.kat.ac.za : <10.98.76.53:9618?... @ 06/19/23 07:46:55OWNER BATCH_NAME SUBMITTED DONE RUN IDLE TOTAL JOB_IDSjbehrend ID: 361 6/16 17:17 _ 1 _ 1 361.0Total for query: 1 jobs; 0 completed, 0 removed, 0 idle, 1 running, 0 held, 0 suspendedTotal for all users: 2 jobs; 0 completed, 0 removed, 0 idle, 2 running, 0 held, 0 suspendedroot@mq:~#Cheers, Jan
--MAX-PLANCK-INSTITUT fuer RadioastronomieJan Behrend - Backend Development Group----------------------------------------Auf dem Huegel 69, D-53121 BonnÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂTel: +49 (228) 525 248
_______________________________________________ HTCondor-users mailing list To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a subject: Unsubscribe You can also unsubscribe by visiting https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users The archives can be found at: https://lists.cs.wisc.edu/archive/htcondor-users/