Package Ganga :: Package Core :: Package Sandbox :: Module WNSandbox
[hide private]
[frames] | no frames]

Module WNSandbox

source code

Sandbox functions used in the job wrapper script on the worker node. The text of this module is sourced into the job wrapper script. It therefore may use ###TAGS### which are expanded in the wrapper script.

Functions [hide private]
 
getPackedInputSandbox(tarpath, dest_dir='.')
Get all sandbox_files from tarball and write them to the workdir.
source code
 
getInputSandbox(src_dir, dest_dir='.')
Get all input sandbox_files from tarball and write them to the workdir.
source code
 
createOutputSandbox(output_patterns, filter, dest_dir)
Get all files matching output patterns except filtered with filter and write them to the destination directory.
source code
 
createPackedOutputSandbox(output_patterns, filter, dest_dir)
Get all files matching output patterns except filtered with filter and put them to the Sandbox tarball in destination directory.
source code
Variables [hide private]
  INPUT_TARBALL_NAME = '_input_sandbox.tgz'
  OUTPUT_TARBALL_NAME = '_output_sandbox.tgz'
  PYTHON_DIR = '_python'
  __package__ = None
hash(x)
Function Details [hide private]

getPackedInputSandbox(tarpath, dest_dir='.')

source code 
Get all sandbox_files from tarball and write them to the workdir.
   This function is called by wrapper script at the run time.
Arguments:
  'tarpath': a path to the tarball
  'dest_dir': a destination directory

getInputSandbox(src_dir, dest_dir='.')

source code 
Get all input sandbox_files from tarball and write them to the workdir.
   This function is called by wrapper script at the run time.
Arguments:
  'src_dir': a source directory  with InputSandbox files.
  'dest_dir': a destination directory 

createOutputSandbox(output_patterns, filter, dest_dir)

source code 
Get all files matching output patterns except filtered with filter and
   write them to the destination directory.
   This function is called by wrapper script at the run time.
Arguments:
  'output_patterns': list of filenames or patterns.
  'filter': function to filter files (return True to except) 
  'dest_dir': destination directory for output files

createPackedOutputSandbox(output_patterns, filter, dest_dir)

source code 
Get all files matching output patterns except filtered with filter and
   put them to the Sandbox tarball in destination directory.
   This function is called by wrapper script at the run time.
Arguments:
  'output_patterns': list of filenames or patterns.
  'filter': function to filter files (return True to except) 
  'dest_dir': destination directory for tarball