Belle II Software  release-06-01-15
MaxSubjobsSplitter Class Reference
Inheritance diagram for MaxSubjobsSplitter:
Collaboration diagram for MaxSubjobsSplitter:

Public Member Functions

def __init__ (self, *arguments_generator=None, max_subjobs=1000)
 
def create_subjobs (self, job)
 
def assign_arguments (self, job)
 
def __repr__ (self)
 

Public Attributes

 max_subjobs
 The maximum number of SubJob objects to be created, input files are split evenly between them.
 
 arguments_generator
 The ArgumentsGenerator used when creating subjobs.
 

Detailed Description

Definition at line 228 of file backends.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
arguments_generator = None,
  max_subjobs = 1000 
)
Parameters:
    max_subjobs (int): The maximium number ofsubjobs that will be created.

Definition at line 230 of file backends.py.

Member Function Documentation

◆ assign_arguments()

def assign_arguments (   self,
  job 
)
inherited
Use the `arguments_generator` (if one exists) to assign the argument tuples to the
subjobs.

Definition at line 169 of file backends.py.

◆ create_subjobs()

def create_subjobs (   self,
  job 
)
This function creates subjobs for the parent job passed in. It creates as many subjobs as required
by the number of input files up to the maximum set by `MaxSubjobsSplitter.max_subjobs`. If there are
more input files than `max_subjobs` it instead groups files by the minimum number per subjob in order to
respect the subjob limit e.g. If you have 11 input files and a maximum number of subjobs of 4, then it
will create 4 subjobs, 3 of them with 3 input files, and one with 2 input files.

Reimplemented from SubjobSplitter.

Definition at line 239 of file backends.py.


The documentation for this class was generated from the following file: