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
 
 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
 
 debugging_args
 debugging More...
 
 opts
 
 macro
 
 rel
 
 draincmd
 
 outfiles
 
 completejobs
 
 missingjobs
 
 regex
 
 reresult
 
 thisjob
 
 thismax
 
 grid_script
 
 source_scripts
 
 script_path
 
 jobsub_opts
 
 usage_models
 
 disk_opt
 
 mem_opt
 
 life_opt
 
 site_opt
 
 test
 
 print_jobsub
 
 rc
 
 cmd
 

Function Documentation

def submit_cafana.find_file (   paths,
  filename 
)

Definition at line 53 of file submit_cafana.py.

References common_tools.fail().

Referenced by cet::search_path.showenv().

53 def find_file(paths, filename):
54  if os.path.isfile(filename):
55  return filename
56  for path in paths:
57  for root, dirs, files in os.walk(os.path.expandvars(path)):
58  if filename in files:
59  return os.path.join(root, filename)
60  fail("Cannot find file "+filename)
61 
62 
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 63 of file submit_cafana.py.

63 def find_file_in_list(filepath, pathlist):
64  for testpath in pathlist:
65  if os.path.basename(filepath) == os.path.basename(testpath):
66  return True
67  return False
68 
69 
def find_file_in_list(filepath, pathlist)
def submit_cafana.remove_comments (   src)

Definition at line 36 of file submit_cafana.py.

36 def remove_comments(src):
37  if '#' not in src: return src
38  return src[0:src.find('#')]
39 
def remove_comments(src)
def submit_cafana.test_not_dcache (   l,
  warnOnly = False 
)

Definition at line 40 of file submit_cafana.py.

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

40 def test_not_dcache(l, warnOnly = False):
41  loc = os.path.expandvars(l)
42  for bad in ['/nova/app/', '/nova/ana/', '/nova/data/', '/grid']:
43  if loc.startswith(bad):
44  txt = "Location %s cannot be on %s it must be in dCache /pnfs/nova/" % (loc, bad)
45  if loc.startswith('/nova/app'):
46  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."
47  if warnOnly:
48  warn(txt)
49  else:
50  fail(txt)
51 
52 
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 82 of file submit_cafana.py.

submit_cafana.cmd

Definition at line 444 of file submit_cafana.py.

submit_cafana.completejobs

Definition at line 274 of file submit_cafana.py.

submit_cafana.debugging_args

debugging

Definition at line 236 of file submit_cafana.py.

submit_cafana.default

Definition at line 124 of file submit_cafana.py.

submit_cafana.description

Definition at line 93 of file submit_cafana.py.

submit_cafana.disk_opt

Definition at line 356 of file submit_cafana.py.

submit_cafana.draincmd

Definition at line 271 of file submit_cafana.py.

submit_cafana.False

Definition at line 211 of file submit_cafana.py.

submit_cafana.grid_script

Definition at line 319 of file submit_cafana.py.

submit_cafana.help

general job control

Definition at line 98 of file submit_cafana.py.

submit_cafana.input_files

Definition at line 72 of file submit_cafana.py.

submit_cafana.int

Definition at line 101 of file submit_cafana.py.

submit_cafana.job_control_args

Define job_control_args.

Definition at line 144 of file submit_cafana.py.

submit_cafana.jobsub_opts

Definition at line 344 of file submit_cafana.py.

submit_cafana.life_opt

Definition at line 379 of file submit_cafana.py.

submit_cafana.macro

Definition at line 253 of file submit_cafana.py.

submit_cafana.mem_opt

Definition at line 360 of file submit_cafana.py.

submit_cafana.metavar

Definition at line 101 of file submit_cafana.py.

submit_cafana.missingjobs

Definition at line 275 of file submit_cafana.py.

submit_cafana.nargs

Definition at line 140 of file submit_cafana.py.

submit_cafana.opts

Definition at line 251 of file submit_cafana.py.

submit_cafana.outfiles

Definition at line 273 of file submit_cafana.py.

submit_cafana.parser

Definition at line 93 of file submit_cafana.py.

submit_cafana.pre_args

Definition at line 83 of file submit_cafana.py.

submit_cafana.prelim_parser

Definition at line 80 of file submit_cafana.py.

submit_cafana.print_jobsub

Definition at line 419 of file submit_cafana.py.

submit_cafana.prog

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

submit_cafana.required

Definition at line 101 of file submit_cafana.py.

submit_cafana.reresult

Definition at line 284 of file submit_cafana.py.

submit_cafana.script_path

Definition at line 335 of file submit_cafana.py.

submit_cafana.site_opt

Definition at line 398 of file submit_cafana.py.

submit_cafana.source_scripts

Definition at line 329 of file submit_cafana.py.

submit_cafana.str

Definition at line 82 of file submit_cafana.py.

submit_cafana.tarball_gp

tarball control options.

Definition at line 146 of file submit_cafana.py.

submit_cafana.test

Definition at line 418 of file submit_cafana.py.

submit_cafana.thisjob

Definition at line 286 of file submit_cafana.py.

submit_cafana.thismax

Definition at line 287 of file submit_cafana.py.

submit_cafana.True

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

submit_cafana.unknown

Definition at line 83 of file submit_cafana.py.

submit_cafana.usage_models

Definition at line 347 of file submit_cafana.py.