

@staticmethod
def _checkJobStoreCreation(create, exists, jobStoreString):
    '\n        Consistency checks which will result in exceptions if we attempt to overwrite an existing\n        job store. This method must be called by the constructor of a subclass before any\n        modification are made. Either create or exists must be True but not both.\n\n        :param bool create: a boolean indicating if the config will try to create a new job store\n\n        :param bool exists: a boolean indicating if the config will try to reconnect to an existing\n               job store\n\n        :raise JobStoreCreationException:  if create == exists\n        '
    if (create and exists):
        raise JobStoreCreationException(("The job store '%s' already exists. Use --restart to resume the workflow, or remove the job store with 'toil clean' to start the workflow from scratch" % jobStoreString))
    if ((not create) and (not exists)):
        raise JobStoreCreationException(("The job store '%s' does not exist, so there is nothing to restart." % jobStoreString))

dataset/ETHPy150Open BD2KGenomics/toil/src/toil/jobStores/abstractJobStore.py AbstractJobStore._checkJobStoreCreation/original