Definition at line 228 of file backends.py.
◆ __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.
◆ 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: