ATLAS Offline Software
checkJobs.py
Go to the documentation of this file.
1 #! /usr/bin/env python
2 
3 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4 # Run beam spot determination on a set of ESD files using JobRunner
5 #
6 # Written by Juerg Beringer in July 2008.
7 
8 
9 from __future__ import print_function
10 
11 import sys
12 import glob
13 
14 if len(sys.argv)!=3:
15  print ("Usage: checkJobs runnr name")
16  exit(1)
17 runnr = sys.argv[1]
18 name = sys.argv[2]
19 prefix = runnr+'/'+name+'/'+'*/*-status.'
20 prefixexit = runnr+'/'+name+'/'+'*/*-exit.'
21 
22 submitted = len(glob.glob(prefix+'SUBMITTED'))
23 running = len(glob.glob(prefix+'RUNNING'))
24 completed = len(glob.glob(prefix+'COMPLETED'))
25 
26 print ('%4i jobs SUBMITTED' % submitted)
27 print ('%4i jobs RUNNING' % running)
28 print ('%4i jobs COMPLETED' % completed)
29 print ('%4i jobs with exit status 0' % len(glob.glob(prefixexit+'0')))
calibdata.exit
exit
Definition: calibdata.py:236