toil.test.src.restartDAGTest

Attributes

logger

Classes

RestartDAGTest

Tests that restarted job DAGs don't run children of jobs that failed in the first run till the

Functions

passingFn(job[, fileName])

This function is guaranteed to pass as it does nothing out of the ordinary. If fileName is

failingFn(job, failType, fileName)

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.RestartDAGTest(methodName='runTest')[source]

Bases: toil.test.ToilTest

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.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

testRestartedWorkflowSchedulesCorrectJobsOnFailedParent()[source]
testRestartedWorkflowSchedulesCorrectJobsOnKilledParent()[source]
toil.test.src.restartDAGTest.passingFn(job, fileName=None)[source]

This function is guaranteed to pass as it does nothing out of the ordinary. If fileName is provided, it will be created.

Parameters:

fileName (str) – The name of a file that must be created if provided.

toil.test.src.restartDAGTest.failingFn(job, failType, fileName)[source]

This function is guaranteed to fail via a raised assertion, or an os.kill

Parameters:
  • job – Job

  • failType (str) – ‘raise’ or ‘kill

  • fileName (str) – The name of a file that must be created.