toil.test.src.restartDAGTest¶
Attributes¶
Classes¶
Tests that restarted job DAGs don't run children of jobs that failed in the first run till the |
Functions¶
|
This function is guaranteed to pass as it does nothing out of the ordinary. |
|
This function is guaranteed to fail via a raised assertion, or an os.kill |
Module Contents¶
- toil.test.src.restartDAGTest.logger¶
- class toil.test.src.restartDAGTest.TestRestartDAG¶
Tests that restarted job DAGs don’t run children of jobs that failed in the first run till the parent completes successfully in the restart.
- testRestartedWorkflowSchedulesCorrectJobsOnFailedParent(tmp_path)¶
- Parameters:
tmp_path (pathlib.Path)
- Return type:
None
- testRestartedWorkflowSchedulesCorrectJobsOnKilledParent(tmp_path)¶
- Parameters:
tmp_path (pathlib.Path)
- Return type:
None
- toil.test.src.restartDAGTest.passingFn(job, file=None)¶
This function is guaranteed to pass as it does nothing out of the ordinary.
If “file” is provided, it will be created.
- Parameters:
file (Optional[pathlib.Path]) – The path of a file that must be created if provided.
job (toil.job.Job)
- Return type:
None
- toil.test.src.restartDAGTest.failingFn(job, failType, file)¶
This function is guaranteed to fail via a raised assertion, or an os.kill
- Parameters:
job (toil.job.Job) – Job
failType (str) – ‘raise’ or ‘kill
file (pathlib.Path) – The path of a file that must be created.
- Return type:
None