Re: [Gridpp-Dirac-Users] DIRAC - How to query job states
Hi Dan, Here's some example python code (attached), extracted from our nagios monitoring. It should do the trick. As other dirac users might also be interested in something along these lines, I've put the list in the cc. Regards, Daniela On 10 October 2017 at 13:47, Dan Protopopescu < Dan.Protopopescu@glasgow.ac.uk> wrote:
Dear Daniela,
Is there a way for me to directly interrogate your Dirac instance about certain instant stats?
Say I want to get the real-time number of jobs running, or waiting, at a given site, or a string of job id-s for all jobs in a given state.
Cheers, Dan
— Dr. Dan PROTOPOPESCU, University of Glasgow, UK W:+44(0)141-330-4197 M:+44(0)794-046-3355 http://ppewww.physics.gla.ac.uk/~protopop/
[University of Glasgow: The Times Scottish University of the Year 2018]
-- Sent from the pit of despair ----------------------------------------------------------- daniela.bauer@imperial.ac.uk HEP Group/Physics Dep Imperial College London, SW7 2BW Tel: +44-(0)20-75947810 http://www.hep.ph.ic.ac.uk/~dbauer/
participants (1)
-
Daniela Bauer