Functions | Variables
submit_cafana Namespace Reference

Functions

def remove_comments (src)
 
def test_not_dcache (l, warnOnly=False)
 
def find_file (paths, filename)
 
def find_file_in_list (filepath, pathlist)
 

Variables

 input_files
 
 prog
 
 prelim_parser
 
 type
 required options So it'll show up in the help text, but it was already handled above More...
 
 str
 
 action
 
 pre_args
 
 unknown
 
 parser
 
 description
 
 help
 general job control More...
 
 int
 
 required
 
 True
 
 metavar
 
 default
 
 nargs
 
 job_control_args
 Define job_control_args. More...
 
 tarball_gp
 tarball control options. More...
 
 False
 
 sing_group
 
 choices
 
 debugging_args
 debugging More...
 
 opts
 
 macro
 
 jobsub_client_ver
 
 shell
 
 rel
 
 draincmd
 
 outfiles
 
 completejobs
 
 missingjobs
 
 regex
 
 reresult
 
 thisjob
 
 thismax
 
 singularity
 
 grid_script
 
 source_scripts
 
 script_path
 
 jobsub_opts
 
 usage_models
 
 disk_opt
 
 mem_opt
 
 cpu_opt
 
 append_condor_opt
 
 life_opt
 
 site_opt
 
 istarball
 
 recommended_sites
 
 test
 
 print_jobsub
 
 rc
 
 cmd
 

Function Documentation

def submit_cafana.find_file (   paths,
  filename 
)

Definition at line 35 of file submit_cafana.py.

References NovaGridUtils.fail().

Referenced by cet::search_path.showenv().

35 def find_file(paths, filename):
36  if os.path.isfile(filename):
37  return filename
38  for path in paths:
39  for root, dirs, files in os.walk(os.path.expandvars(path)):
40  if filename in files:
41  return os.path.join(root, filename)
42  fail("Cannot find file "+filename)
43 
44 
def fail(msg)
def find_file(paths, filename)
def submit_cafana.find_file_in_list (   filepath,
  pathlist 
)

Definition at line 45 of file submit_cafana.py.

45 def find_file_in_list(filepath, pathlist):
46  for testpath in pathlist:
47  if os.path.basename(filepath) == os.path.basename(testpath):
48  return True
49  return False
50 
51 
def find_file_in_list(filepath, pathlist)
def submit_cafana.remove_comments (   src)

Definition at line 18 of file submit_cafana.py.

18 def remove_comments(src):
19  if '#' not in src: return src
20  return src[0:src.find('#')]
21 
def remove_comments(src)
def submit_cafana.test_not_dcache (   l,
  warnOnly = False 
)

Definition at line 22 of file submit_cafana.py.

References NovaGridUtils.fail(), and NovaGridUtils.warn().

22 def test_not_dcache(l, warnOnly = False):
23  loc = os.path.expandvars(l)
24  for bad in ['/nova/app/', '/nova/ana/', '/nova/data/', '/grid']:
25  if loc.startswith(bad):
26  txt = "Location %s cannot be on %s it must be in dCache /pnfs/nova/" % (loc, bad)
27  if loc.startswith('/nova/app'):
28  txt = "Jobs can no longer access BlueArc directly. Test releases will be tarred up and sent to worker nodes, however input files should be moved to dCache."
29  if warnOnly:
30  warn(txt)
31  else:
32  fail(txt)
33 
34 
def fail(msg)
def test_not_dcache(l, warnOnly=False)
def warn(msg)

Variable Documentation

submit_cafana.action

Definition at line 64 of file submit_cafana.py.

submit_cafana.append_condor_opt

Definition at line 390 of file submit_cafana.py.

submit_cafana.choices

Definition at line 216 of file submit_cafana.py.

submit_cafana.cmd

Definition at line 476 of file submit_cafana.py.

submit_cafana.completejobs

Definition at line 290 of file submit_cafana.py.

submit_cafana.cpu_opt

Definition at line 385 of file submit_cafana.py.

submit_cafana.debugging_args

debugging

Definition at line 241 of file submit_cafana.py.

submit_cafana.default

Definition at line 106 of file submit_cafana.py.

submit_cafana.description

Definition at line 75 of file submit_cafana.py.

submit_cafana.disk_opt

Definition at line 376 of file submit_cafana.py.

submit_cafana.draincmd

Definition at line 287 of file submit_cafana.py.

submit_cafana.False

Definition at line 199 of file submit_cafana.py.

submit_cafana.grid_script

Definition at line 339 of file submit_cafana.py.

submit_cafana.help

general job control

Definition at line 80 of file submit_cafana.py.

submit_cafana.input_files

Definition at line 54 of file submit_cafana.py.

submit_cafana.int

Definition at line 83 of file submit_cafana.py.

submit_cafana.istarball

Definition at line 431 of file submit_cafana.py.

submit_cafana.job_control_args

Define job_control_args.

Definition at line 132 of file submit_cafana.py.

submit_cafana.jobsub_client_ver

Definition at line 263 of file submit_cafana.py.

submit_cafana.jobsub_opts

Definition at line 364 of file submit_cafana.py.

submit_cafana.life_opt

Definition at line 409 of file submit_cafana.py.

submit_cafana.macro

Definition at line 257 of file submit_cafana.py.

submit_cafana.mem_opt

Definition at line 380 of file submit_cafana.py.

submit_cafana.metavar

Definition at line 83 of file submit_cafana.py.

submit_cafana.missingjobs

Definition at line 291 of file submit_cafana.py.

submit_cafana.nargs

Definition at line 128 of file submit_cafana.py.

submit_cafana.opts

Definition at line 255 of file submit_cafana.py.

submit_cafana.outfiles

Definition at line 289 of file submit_cafana.py.

submit_cafana.parser

Definition at line 75 of file submit_cafana.py.

submit_cafana.pre_args

Definition at line 65 of file submit_cafana.py.

submit_cafana.prelim_parser

Definition at line 62 of file submit_cafana.py.

submit_cafana.print_jobsub

Definition at line 451 of file submit_cafana.py.

submit_cafana.prog

Definition at line 56 of file submit_cafana.py.

submit_cafana.rc
submit_cafana.recommended_sites

Definition at line 432 of file submit_cafana.py.

submit_cafana.regex
submit_cafana.rel

Definition at line 273 of file submit_cafana.py.

submit_cafana.required

Definition at line 83 of file submit_cafana.py.

submit_cafana.reresult

Definition at line 300 of file submit_cafana.py.

submit_cafana.script_path

Definition at line 355 of file submit_cafana.py.

submit_cafana.shell

Definition at line 263 of file submit_cafana.py.

submit_cafana.sing_group

Definition at line 206 of file submit_cafana.py.

submit_cafana.singularity

Definition at line 327 of file submit_cafana.py.

submit_cafana.site_opt

Definition at line 428 of file submit_cafana.py.

submit_cafana.source_scripts

Definition at line 349 of file submit_cafana.py.

submit_cafana.str

Definition at line 64 of file submit_cafana.py.

submit_cafana.tarball_gp

tarball control options.

Definition at line 134 of file submit_cafana.py.

submit_cafana.test

Definition at line 450 of file submit_cafana.py.

submit_cafana.thisjob

Definition at line 302 of file submit_cafana.py.

submit_cafana.thismax

Definition at line 303 of file submit_cafana.py.

submit_cafana.True

Definition at line 83 of file submit_cafana.py.

submit_cafana.type

required options So it'll show up in the help text, but it was already handled above

Definition at line 64 of file submit_cafana.py.

submit_cafana.unknown

Definition at line 65 of file submit_cafana.py.

submit_cafana.usage_models

Definition at line 367 of file submit_cafana.py.