def incomplete_external_jobid(self, job):
    'Return the external jobid of the job if it is marked as incomplete.\n\n        Returns None, if job is not incomplete, or if no external jobid has been\n        registered or if force_incomplete is True.\n        '
    if self.force_incomplete:
        return None
    jobids = self.workflow.persistence.external_jobids(job)
    if (len(jobids) == 1):
        return jobids[0]
    elif (len(jobids) > 1):
        raise WorkflowError('Multiple different external jobids registered for output files of incomplete job {} ({}). This job cannot be resumed. Execute Snakemake with --rerun-incomplete to fix this issue.'.format(job.jobid, jobids))
Return the external jobid of the job if it is marked as incomplete.

Returns None, if job is not incomplete, or if no external jobid has been
registered or if force_incomplete is True.
def incomplete_external_jobid(self, job):
    'Return the external jobid of the job if it is marked as incomplete.\n\n        Returns None, if job is not incomplete, or if no external jobid has been\n        registered or if force_incomplete is True.\n        '
    if self.force_incomplete:
        return None
    jobids = self.workflow.persistence.external_jobids(job)
    if (len(jobids) == 1):
        return jobids[0]
    elif (len(jobids) > 1):
        raise WorkflowError('Multiple different external jobids registered for output files of incomplete job {} ({}). This job cannot be resumed. Execute Snakemake with --rerun-incomplete to fix this issue.'.format(job.jobid, jobids))