#NEWLINE# @ staticmethod #NEWLINE# def startToil( job , options ) : #NEWLINE# #INDENT# "\n            Runs the toil workflow using the given options             (see Job.Runner.getDefaultOptions and Job.Runner.addToilOptions)             starting with this job.\n            :param toil.job.Job job: root job of the workflow\n            :raises: toil.leader.FailedJobsException if at the end of function             their remain failed jobs.\n            :return: The return value of the root job's run function.\n            :rtype: Any\n            " #NEWLINE# setLoggingFromOptions ( options ) #NEWLINE# with Toil ( options ) as toil : #NEWLINE# #INDENT# if ( not options . restart ) : #NEWLINE# #INDENT# return toil . start ( job ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return toil . restart ( )