![]() |
Belle II Software development
|
Public Member Functions | |
__init__ (self, *, arguments_generator=None) | |
create_subjobs (self, job) | |
assign_arguments (self, job) | |
__repr__ (self) | |
Public Attributes | |
arguments_generator = arguments_generator | |
The ArgumentsGenerator used when creating subjobs. | |
Abstract base class. This class handles the logic of creating subjobs for a `Job` object. The `create_subjobs` function should be implemented and used to construct the subjobs of the parent job object. Parameters: arguments_generator (ArgumentsGenerator): Used to construct the generator function that will yield the argument tuple for each `SubJob`. The splitter will iterate through the generator each time `create_subjobs` is called. The `SubJob` will be sent into the generator with ``send(subjob)`` so that the generator can decide what arguments to return.
Definition at line 152 of file backends.py.
__init__ | ( | self, | |
* | , | ||
arguments_generator = None ) |
Derived classes should call `super` to run this.
Definition at line 165 of file backends.py.
__repr__ | ( | self | ) |
Definition at line 204 of file backends.py.
assign_arguments | ( | self, | |
job ) |
Use the `arguments_generator` (if one exists) to assign the argument tuples to the subjobs.
Definition at line 178 of file backends.py.
create_subjobs | ( | self, | |
job ) |
Implement this method in derived classes to generate the `SubJob` objects.
Reimplemented in ArgumentsSplitter, MaxFilesSplitter, and MaxSubjobsSplitter.
Definition at line 173 of file backends.py.
arguments_generator = arguments_generator |
The ArgumentsGenerator
used when creating subjobs.
Definition at line 170 of file backends.py.