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 
10 import sys
11 import glob
12 
13 if len(sys.argv)!=3:
14  print ("Usage: checkJobs runnr name")
15  exit(1)
16 runnr = sys.argv[1]
17 name = sys.argv[2]
18 prefix = runnr+'/'+name+'/'+'*/*-status.'
19 prefixexit = runnr+'/'+name+'/'+'*/*-exit.'
20 
21 submitted = len(glob.glob(prefix+'SUBMITTED'))
22 running = len(glob.glob(prefix+'RUNNING'))
23 completed = len(glob.glob(prefix+'COMPLETED'))
24 
25 print ('%4i jobs SUBMITTED' % submitted)
26 print ('%4i jobs RUNNING' % running)
27 print ('%4i jobs COMPLETED' % completed)
28 print ('%4i jobs with exit status 0' % len(glob.glob(prefixexit+'0')))
calibdata.exit
exit
Definition: calibdata.py:235