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

 recommended_sites
 
 known_os_containers
 
 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
 
 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
 
 test
 
 print_jobsub
 
 rc
 
 cmd
 

Function Documentation

def submit_cafana.find_file (   paths,
  filename 
)

Definition at line 59 of file submit_cafana.py.

References common_tools.fail().

Referenced by cet::search_path.showenv().

59 def find_file(paths, filename):
60  if os.path.isfile(filename):
61  return filename
62  for path in paths:
63  for root, dirs, files in os.walk(os.path.expandvars(path)):
64  if filename in files:
65  return os.path.join(root, filename)
66  fail("Cannot find file "+filename)
67 
68 
def find_file(paths, filename)
def fail(msg)
print a failure message, from: https://cdcvs.fnal.gov/redmine/projects/novaart/repository/entry/trunk...
Definition: common_tools.py:7
def submit_cafana.find_file_in_list (   filepath,
  pathlist 
)

Definition at line 69 of file submit_cafana.py.

69 def find_file_in_list(filepath, pathlist):
70  for testpath in pathlist:
71  if os.path.basename(filepath) == os.path.basename(testpath):
72  return True
73  return False
74 
75 
def find_file_in_list(filepath, pathlist)
def submit_cafana.remove_comments (   src)

Definition at line 42 of file submit_cafana.py.

42 def remove_comments(src):
43  if '#' not in src: return src
44  return src[0:src.find('#')]
45 
def remove_comments(src)
def submit_cafana.test_not_dcache (   l,
  warnOnly = False 
)

Definition at line 46 of file submit_cafana.py.

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

46 def test_not_dcache(l, warnOnly = False):
47  loc = os.path.expandvars(l)
48  for bad in ['/nova/app/', '/nova/ana/', '/nova/data/', '/grid']:
49  if loc.startswith(bad):
50  txt = "Location %s cannot be on %s it must be in dCache /pnfs/nova/" % (loc, bad)
51  if loc.startswith('/nova/app'):
52  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."
53  if warnOnly:
54  warn(txt)
55  else:
56  fail(txt)
57 
58 
def test_not_dcache(l, warnOnly=False)
def fail(msg)
print a failure message, from: https://cdcvs.fnal.gov/redmine/projects/novaart/repository/entry/trunk...
Definition: common_tools.py:7
def warn(msg)
print a warning message, from: https://cdcvs.fnal.gov/redmine/projects/novaart/repository/entry/trunk...
Definition: common_tools.py:16

Variable Documentation

submit_cafana.action

Definition at line 88 of file submit_cafana.py.

submit_cafana.append_condor_opt

Definition at line 402 of file submit_cafana.py.

submit_cafana.choices

Definition at line 240 of file submit_cafana.py.

submit_cafana.cmd

Definition at line 486 of file submit_cafana.py.

submit_cafana.completejobs

Definition at line 302 of file submit_cafana.py.

submit_cafana.cpu_opt

Definition at line 397 of file submit_cafana.py.

submit_cafana.debugging_args

debugging

Definition at line 265 of file submit_cafana.py.

submit_cafana.default

Definition at line 130 of file submit_cafana.py.

submit_cafana.description

Definition at line 99 of file submit_cafana.py.

submit_cafana.disk_opt

Definition at line 388 of file submit_cafana.py.

submit_cafana.draincmd

Definition at line 299 of file submit_cafana.py.

submit_cafana.False

Definition at line 223 of file submit_cafana.py.

submit_cafana.grid_script

Definition at line 351 of file submit_cafana.py.

submit_cafana.help

general job control

Definition at line 104 of file submit_cafana.py.

submit_cafana.input_files

Definition at line 78 of file submit_cafana.py.

submit_cafana.int

Definition at line 107 of file submit_cafana.py.

submit_cafana.job_control_args

Define job_control_args.

Definition at line 156 of file submit_cafana.py.

submit_cafana.jobsub_opts

Definition at line 376 of file submit_cafana.py.

submit_cafana.known_os_containers

Definition at line 36 of file submit_cafana.py.

submit_cafana.life_opt

Definition at line 421 of file submit_cafana.py.

submit_cafana.macro

Definition at line 281 of file submit_cafana.py.

submit_cafana.mem_opt

Definition at line 392 of file submit_cafana.py.

submit_cafana.metavar

Definition at line 107 of file submit_cafana.py.

submit_cafana.missingjobs

Definition at line 303 of file submit_cafana.py.

submit_cafana.nargs

Definition at line 152 of file submit_cafana.py.

submit_cafana.opts

Definition at line 279 of file submit_cafana.py.

submit_cafana.outfiles

Definition at line 301 of file submit_cafana.py.

submit_cafana.parser

Definition at line 99 of file submit_cafana.py.

submit_cafana.pre_args

Definition at line 89 of file submit_cafana.py.

submit_cafana.prelim_parser

Definition at line 86 of file submit_cafana.py.

submit_cafana.print_jobsub

Definition at line 461 of file submit_cafana.py.

submit_cafana.prog

Definition at line 80 of file submit_cafana.py.

submit_cafana.rc
submit_cafana.recommended_sites

Definition at line 14 of file submit_cafana.py.

submit_cafana.regex
submit_cafana.rel

Definition at line 285 of file submit_cafana.py.

submit_cafana.required

Definition at line 107 of file submit_cafana.py.

submit_cafana.reresult

Definition at line 312 of file submit_cafana.py.

submit_cafana.script_path

Definition at line 367 of file submit_cafana.py.

submit_cafana.sing_group

Definition at line 230 of file submit_cafana.py.

submit_cafana.singularity

Definition at line 339 of file submit_cafana.py.

submit_cafana.site_opt

Definition at line 440 of file submit_cafana.py.

submit_cafana.source_scripts

Definition at line 361 of file submit_cafana.py.

submit_cafana.str

Definition at line 88 of file submit_cafana.py.

submit_cafana.tarball_gp

tarball control options.

Definition at line 158 of file submit_cafana.py.

submit_cafana.test

Definition at line 460 of file submit_cafana.py.

submit_cafana.thisjob

Definition at line 314 of file submit_cafana.py.

submit_cafana.thismax

Definition at line 315 of file submit_cafana.py.

submit_cafana.True

Definition at line 107 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 88 of file submit_cafana.py.

submit_cafana.unknown

Definition at line 89 of file submit_cafana.py.

submit_cafana.usage_models

Definition at line 379 of file submit_cafana.py.