after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
def __enter__(self): """ Derive configuration from the command line options, load the job store and, on restart, consolidate the derived configuration with the one from the previous invocation of the workflow. """ setLoggingFromOptions(self.options) config = Config() config.setOptions(se...
def __enter__(self): """ Derive configuration from the command line options, load the job store and, on restart, consolidate the derived configuration with the one from the previous invocation of the workflow. """ setLoggingFromOptions(self.options) self._inContextManager = True self.con...
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def __exit__(self, exc_type, exc_val, exc_tb): """ Clean up after a workflow invocation. Depending on the configuration, delete the job store. """ try: if ( exc_type is not None and self.config.clean == "onError" or exc_type is None and self.config...
def __exit__(self, exc_type, exc_val, exc_tb): """ Clean up after a workflow invocation. Depending on the configuration, delete the job store. """ try: if ( exc_type is not None and self.config.clean == "onError" or exc_type is None and self.config...
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def __init__(self): """ Create an instance of the job store. The instance will not be fully functional until either :meth:`.initialize` or :meth:`.resume` is invoked. Note that the :meth:`.destroy` method may be invoked on the object with or without prior invocation of either of these two methods. ...
def __init__(self, config=None): """ :param toil.common.Config config: If config is not None then the given configuration object will be written to the shared file "config.pickle" which can later be retrieved using the readSharedFileStream. See writeConfigToStore. If this file already exis...
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def _importFile(self, otherCls, url, sharedFileName=None): """ Import the file at the given URL using the given job store class to retrieve that file. See also :meth:`.importFile`. This method applies a generic approach to importing: it asks the other job store class for a stream and writes that stream ...
def _importFile(self, otherCls, url, sharedFileName=None): """ Import the file at the given URL using the given job store class to retrieve that file. See also :meth:`importFile`. This method applies a generic approach to importing: it asks the other job store class for a stream and writes that stream a...
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def clean(self, jobCache=None): """ Function to cleanup the state of a job store after a restart. Fixes jobs that might have been partially updated. Resets the try counts and removes jobs that are not successors of the current root job. :param dict[str,toil.jobWrapper.JobWrapper] jobCache: if a val...
def clean(self, jobCache=None): """ Function to cleanup the state of a job store after a restart. Fixes jobs that might have been partially updated. Resets the try counts and removes jobs that are not successors of the current root job. :param dict[str,toil.jobWrapper.JobWrapper] jobCache: if a val...
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def _getKeyForUrl(url, existing=None): """ Extracts a key from a given s3:// URL. On return, but not on exceptions, this method leaks an S3Connection object. The caller is responsible to close that by calling key.bucket.connection.close(). :param bool existing: If True, key is expected to exist. If...
def _getKeyForUrl(url, existing=None): """ Extracts a key from a given s3:// URL. On return, but not on exceptions, this method leaks an S3Connection object. The caller is responsible to close that by calling key.bucket.connection.close(). :param bool existing: If True, key is expected to exist. If...
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def downloadStream(self): info = self class DownloadPipe(ReadablePipe): def writeTo(self, writable): if info.content is not None: writable.write(info.content) elif info.version: headers = info._s3EncryptionHeaders() key = info.oute...
def downloadStream(self): readable_fh, writable_fh = os.pipe() with os.fdopen(readable_fh, "r") as readable: with os.fdopen(writable_fh, "w") as writable: def writer(): try: if self.content is not None: writable.write(self.content)...
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def __init__(self, locator, jobChunkSize=maxAzureTablePropertySize): super(AzureJobStore, self).__init__() accountName, namePrefix = locator.split(":", 1) if "--" in namePrefix: raise ValueError( "Invalid name prefix '%s'. Name prefixes may not contain %s." % (namePrefix, sel...
def __init__( self, accountName, namePrefix, config=None, jobChunkSize=maxAzureTablePropertySize ): self.jobChunkSize = jobChunkSize self.keyPath = None self.account_key = _fetchAzureAccountKey(accountName) self.accountName = accountName # Table names have strict requirements in Azure self....
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def _jobStoreExists(self): """ Checks if job store exists by querying the existence of the statsFileIDs table. Note that this is the last component that is deleted in :meth:`.destroy`. """ for attempt in retry_azure(): with attempt: try: table = self.tableService....
def _jobStoreExists(self): """ Checks if job store exists by querying the existence of the statsFileIDs table. Note that this is the last component that is deleted in deleteJobStore. """ for attempt in retry_azure(): with attempt: try: table = self.tableService.qu...
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def getEnv(self): return dict(AZURE_ACCOUNT_KEY=self.accountKey)
def getEnv(self): return dict(AZURE_ACCOUNT_KEY=self.account_key)
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def _readFromUrl(cls, url, writable): blob = cls._parseWasbUrl(url) blob.service.get_blob_to_file( container_name=blob.container, blob_name=blob.name, stream=writable )
def _readFromUrl(cls, url, writable): blobService, containerName, blobName = cls._extractBlobInfoFromUrl(url) blobService.get_blob_to_file(containerName, blobName, writable)
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def _writeToUrl(cls, readable, url): blob = cls._parseWasbUrl(url) blob.service.put_block_blob_from_file( container_name=blob.container, blob_name=blob.name, stream=readable )
def _writeToUrl(cls, readable, url): blobService, containerName, blobName = cls._extractBlobInfoFromUrl(url) blobService.put_block_blob_from_file(containerName, blobName, readable) blobService.get_blob(containerName, blobName)
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def _supportsUrl(cls, url, export=False): return url.scheme.lower() in ("wasb", "wasbs")
def _supportsUrl(cls, url, export=False): return url.scheme.lower() == "wasb" or url.scheme.lower() == "wasbs"
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def _uploadStream( self, jobStoreFileID, container, checkForModification=False, encrypted=None ): """ :param encrypted: True to enforce encryption (will raise exception unless key is set), False to prevent encryption or None to encrypt if key is set. """ if checkForModification: try: ...
def _uploadStream( self, jobStoreFileID, container, checkForModification=False, encrypted=None ): """ :param encrypted: True to enforce encryption (will raise exception unless key is set), False to prevent encryption or None to encrypt if key is set. """ if checkForModification: try: ...
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def reader(): blockIDs = [] try: while True: buf = readable.read(maxBlockSize) if len(buf) == 0: # We're safe to break here even if we never read anything, since # putting an empty block list creates an empty blob. break ...
def reader(): blockIDs = [] try: while True: buf = readable.read(maxBlockSize) if len(buf) == 0: # We're safe to break here even if we never read anything, since # putting an empty block list creates an empty blob. break ...
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def __init__(self, path): """ :param str path: Path to directory holding the job store """ super(FileJobStore, self).__init__() self.jobStoreDir = absSymPath(path) logger.info("Path to job store directory is '%s'.", self.jobStoreDir) # Directory where temporary files go self.tempFilesDir...
def __init__(self, jobStoreDir, config=None): """ :param jobStoreDir: Place to create jobStore :param config: See jobStores.abstractJobStore.AbstractJobStore.__init__ :raise RuntimeError: if config != None and the jobStore already exists or config == None and the jobStore does not already exists. ...
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def main(): parser = getBasicOptionParser() parser.add_argument( "jobStore", type=str, help="The location of the job store to delete. " + jobStoreLocatorHelp, ) parser.add_argument("--version", action="version", version=version) options = parseBasicOptions(parser) logger....
def main(): """Removes the JobStore from a toil run.""" ########################################## # Construct the arguments. ########################################## parser = getBasicOptionParser() parser.add_argument( "jobStore", type=str, help=( "Store ...
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def main(): parser = getBasicOptionParser() parser.add_argument( "jobStore", type=str, help="The location of the job store used by the workflow whose jobs should " "be killed." + jobStoreLocatorHelp, ) parser.add_argument("--version", action="version", version=version) ...
def main(): parser = getBasicOptionParser() parser.add_argument( "jobStore", type=str, help=( "Store in which to place job management files \ and the global accessed temporary files" "(If this is a file path this needs to be globally accessible " ...
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def main(): """Reports the state of the toil.""" ########################################## # Construct the arguments. ########################################## parser = getBasicOptionParser() parser.add_argument( "jobStore", type=str, help="The location of a job stor...
def main(): """Reports the state of the toil.""" ########################################## # Construct the arguments. ########################################## parser = getBasicOptionParser() parser.add_argument( "jobStore", type=str, help=( "Store in whi...
https://github.com/DataBiosphere/toil/issues/869
cmarkello@c1master1:~$ toil clean azure:hgvm:hgvmevaljobstore 2016-05-13 23:08:36,438 INFO:toil.lib.bioio: Logging set at level: INFO 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Parsed arguments 2016-05-13 23:08:36,445 INFO:toil.utils.toilClean: Checking if we have files for toil 2016-05-13 23:08:36,525 INFO:req...
toil.jobStores.abstractJobStore.NoSuchFileException
def importFile(self, srcUrl, sharedFileName=None): """ Imports the file at the given URL into job store. The ID of the newly imported file is returned. If the name of a shared file name is provided, the file will be imported as such and None is returned. Currently supported schemes are: - ...
def importFile(self, srcUrl, sharedFileName=None): """ Imports the file at the given URL into job store. The jobStoreFileId of the new file is returned. If a shared file name is given, the file will be imported as a shared file and None is returned. Note that the helper method _importFile is used t...
https://github.com/DataBiosphere/toil/issues/785
ubuntu@ip-172-31-24-34:~/common-workflow-language$ toil clean aws:us-west-2:peter-cwltoil-test 2016-04-13 15:36:32,632 INFO:toil.lib.bioio: Logging set at level: INFO 2016-04-13 15:36:32,632 INFO:toil.utils.toilClean: Parsed arguments 2016-04-13 15:36:32,633 INFO:toil.utils.toilClean: Checking if we have files for toil...
boto.exception.S3CreateError
def exportFile(self, jobStoreFileID, dstUrl): """ Exports file to destination pointed at by the destination URL. Refer to AbstractJobStore.importFile documentation for currently supported URL schemes. Note that the helper method _exportFile is used to read from the source and write to destination....
def exportFile(self, jobStoreFileID, dstUrl): """ Exports file to destination pointed at by the destination URL. Refer to AbstractJobStore.importFile documentation for currently supported URL schemes. Note that the helper method _exportFile is used to read from the source and write to destination....
https://github.com/DataBiosphere/toil/issues/785
ubuntu@ip-172-31-24-34:~/common-workflow-language$ toil clean aws:us-west-2:peter-cwltoil-test 2016-04-13 15:36:32,632 INFO:toil.lib.bioio: Logging set at level: INFO 2016-04-13 15:36:32,632 INFO:toil.utils.toilClean: Parsed arguments 2016-04-13 15:36:32,633 INFO:toil.utils.toilClean: Checking if we have files for toil...
boto.exception.S3CreateError
def _exportFile(self, otherCls, jobStoreFileID, url): """ Refer to exportFile docstring for information about this method. :param AbstractJobStore otherCls: The concrete subclass of AbstractJobStore that supports exporting to the given URL. Note that the type annotation here is not completely ...
def _exportFile(self, otherCls, jobStoreFileID, url): """ Refer to exportFile docstring for information about this method. :param type otherCls: The concrete subclass of AbstractJobStore that supports exporting to the given URL. :param str jobStoreFileID: The id of the file that will be exported. :...
https://github.com/DataBiosphere/toil/issues/785
ubuntu@ip-172-31-24-34:~/common-workflow-language$ toil clean aws:us-west-2:peter-cwltoil-test 2016-04-13 15:36:32,632 INFO:toil.lib.bioio: Logging set at level: INFO 2016-04-13 15:36:32,632 INFO:toil.utils.toilClean: Parsed arguments 2016-04-13 15:36:32,633 INFO:toil.utils.toilClean: Checking if we have files for toil...
boto.exception.S3CreateError
def getConnectedJobs(jobWrapper): if jobWrapper.jobStoreID in reachableFromRoot: return reachableFromRoot.add(jobWrapper.jobStoreID) # Traverse jobs in stack for jobs in jobWrapper.stack: for successorJobStoreID in map(lambda x: x[0], jobs): if successorJobStoreID not in reac...
def getConnectedJobs(jobWrapper): if jobWrapper.jobStoreID in reachableFromRoot: return reachableFromRoot.add(jobWrapper.jobStoreID) # Traverse jobs in stack for jobs in jobWrapper.stack: for successorJobStoreID in map(lambda x: x[0], jobs): if successorJobStoreID not in reac...
https://github.com/DataBiosphere/toil/issues/785
ubuntu@ip-172-31-24-34:~/common-workflow-language$ toil clean aws:us-west-2:peter-cwltoil-test 2016-04-13 15:36:32,632 INFO:toil.lib.bioio: Logging set at level: INFO 2016-04-13 15:36:32,632 INFO:toil.utils.toilClean: Parsed arguments 2016-04-13 15:36:32,633 INFO:toil.utils.toilClean: Checking if we have files for toil...
boto.exception.S3CreateError
def uploadStream(self, multipart=True, allowInlining=True): info = self store = self.outer class MultiPartPipe(WritablePipe): def readFrom(self, readable): buf = readable.read(store.partSize) if allowInlining and len(buf) <= info._maxInlinedSize(): info.conte...
def uploadStream(self, multipart=True, allowInlining=True): store = self.outer readable_fh, writable_fh = os.pipe() with os.fdopen(readable_fh, "r") as readable: with os.fdopen(writable_fh, "w") as writable: def multipartReader(): buf = readable.read(store.partSize) ...
https://github.com/DataBiosphere/toil/issues/785
ubuntu@ip-172-31-24-34:~/common-workflow-language$ toil clean aws:us-west-2:peter-cwltoil-test 2016-04-13 15:36:32,632 INFO:toil.lib.bioio: Logging set at level: INFO 2016-04-13 15:36:32,632 INFO:toil.utils.toilClean: Parsed arguments 2016-04-13 15:36:32,633 INFO:toil.utils.toilClean: Checking if we have files for toil...
boto.exception.S3CreateError
def _downloadStream(self, jobStoreFileID, container): # The reason this is not in the writer is so we catch non-existant blobs early blobProps = container.get_blob_properties(blob_name=jobStoreFileID) encrypted = strict_bool(blobProps["x-ms-meta-encrypted"]) if encrypted and self.keyPath is None: ...
def _downloadStream(self, jobStoreFileID, container): # The reason this is not in the writer is so we catch non-existant blobs early blobProps = container.get_blob_properties(blob_name=jobStoreFileID) encrypted = strict_bool(blobProps["x-ms-meta-encrypted"]) if encrypted and self.keyPath is None: ...
https://github.com/DataBiosphere/toil/issues/785
ubuntu@ip-172-31-24-34:~/common-workflow-language$ toil clean aws:us-west-2:peter-cwltoil-test 2016-04-13 15:36:32,632 INFO:toil.lib.bioio: Logging set at level: INFO 2016-04-13 15:36:32,632 INFO:toil.utils.toilClean: Parsed arguments 2016-04-13 15:36:32,633 INFO:toil.utils.toilClean: Checking if we have files for toil...
boto.exception.S3CreateError
def _uploadStream(self, key, update=False, encrypt=True): store = self class UploadPipe(WritablePipe): def readFrom(self, readable): headers = store.encryptedHeaders if encrypt else store.headerValues if update: try: key.set_contents_from_stre...
def _uploadStream(self, key, update=False, encrypt=True): readable_fh, writable_fh = os.pipe() with os.fdopen(readable_fh, "r") as readable: with os.fdopen(writable_fh, "w") as writable: def writer(): headers = self.encryptedHeaders if encrypt else self.headerValues ...
https://github.com/DataBiosphere/toil/issues/785
ubuntu@ip-172-31-24-34:~/common-workflow-language$ toil clean aws:us-west-2:peter-cwltoil-test 2016-04-13 15:36:32,632 INFO:toil.lib.bioio: Logging set at level: INFO 2016-04-13 15:36:32,632 INFO:toil.utils.toilClean: Parsed arguments 2016-04-13 15:36:32,633 INFO:toil.utils.toilClean: Checking if we have files for toil...
boto.exception.S3CreateError
def _downloadStream(self, key, encrypt=True): store = self class DownloadPipe(ReadablePipe): def writeTo(self, writable): headers = store.encryptedHeaders if encrypt else store.headerValues try: key.get_file(writable, headers=headers) finally: ...
def _downloadStream(self, key, encrypt=True): readable_fh, writable_fh = os.pipe() with os.fdopen(readable_fh, "r") as readable: with os.fdopen(writable_fh, "w") as writable: def writer(): headers = self.encryptedHeaders if encrypt else self.headerValues try:...
https://github.com/DataBiosphere/toil/issues/785
ubuntu@ip-172-31-24-34:~/common-workflow-language$ toil clean aws:us-west-2:peter-cwltoil-test 2016-04-13 15:36:32,632 INFO:toil.lib.bioio: Logging set at level: INFO 2016-04-13 15:36:32,632 INFO:toil.utils.toilClean: Parsed arguments 2016-04-13 15:36:32,633 INFO:toil.utils.toilClean: Checking if we have files for toil...
boto.exception.S3CreateError
def _updatePredecessorStatus(self, jobStoreID): """ Update status of a predecessor for finished successor job. """ if jobStoreID in self.toilState.serviceJobStoreIDToPredecessorJob: # Is a service job predecessorJob = self.toilState.serviceJobStoreIDToPredecessorJob.pop( jobS...
def _updatePredecessorStatus(self, jobStoreID): """ Update status of a predecessor for finished successor job. """ if jobStoreID in self.toilState.serviceJobStoreIDToPredecessorJob: # Is a service job predecessorJob = self.toilState.serviceJobStoreIDToPredecessorJob.pop( jobS...
https://github.com/DataBiosphere/toil/issues/808
Repairing job: 1/X/jobPiXIW2 Repairing job: c/C/jobTbIFOx ---TOIL WORKER OUTPUT LOG--- ---TOIL WORKER OUTPUT LOG--- Traceback (most recent call last): File "/cluster/home/jcarmstr/toil/src/toil/worker.py", line 208, in main jobWrapper = jobStore.load(jobStoreID) File "/cluster/home/jcarmstr/toil/src/toil/jobStores/file...
NoSuchJobException
def innerLoop( jobStore, config, batchSystem, toilState, jobBatcher, serviceManager, statsAndLogging, ): """ :param toil.jobStores.abstractJobStore.AbstractJobStore jobStore: :param toil.common.Config config: :param toil.batchSystems.abstractBatchSystem.AbstractBatchSystem ba...
def innerLoop( jobStore, config, batchSystem, toilState, jobBatcher, serviceManager, statsAndLogging, ): """ :param toil.jobStores.abstractJobStore.AbstractJobStore jobStore: :param toil.common.Config config: :param toil.batchSystems.abstractBatchSystem.AbstractBatchSystem ba...
https://github.com/DataBiosphere/toil/issues/808
Repairing job: 1/X/jobPiXIW2 Repairing job: c/C/jobTbIFOx ---TOIL WORKER OUTPUT LOG--- ---TOIL WORKER OUTPUT LOG--- Traceback (most recent call last): File "/cluster/home/jcarmstr/toil/src/toil/worker.py", line 208, in main jobWrapper = jobStore.load(jobStoreID) File "/cluster/home/jcarmstr/toil/src/toil/jobStores/file...
NoSuchJobException
def resolveEntryPoint(entryPoint): """ Returns the path to the given entry point (see setup.py) that *should* work on a worker. The return value may be an absolute or a relative path. """ if hasattr(sys, "real_prefix"): path = os.path.join(os.path.dirname(sys.executable), entryPoint) ...
def resolveEntryPoint(entryPoint): """ Returns the path to the given entry point (see setup.py) that *should* work on a worker. The return value may be an absolute or a relative path. """ if hasattr(sys, "real_prefix"): # Inside a virtualenv we will use absolute paths to the entrypoints. For...
https://github.com/DataBiosphere/toil/issues/929
INFO:toil.leader:Starting the main loop Traceback (most recent call last): File "./piptest/bin/toil-rnaseq", line 11, in <module> sys.exit(main()) File "/home/mesosbox/piptest/local/lib/python2.7/site-packages/toil_scripts/rnaseq_cgl/rnaseq_cgl_pipeline.py", line 638, in main Job.Runner.startToil(Job.wrapJobFn(map_job,...
AssertionError
def _importFile(self, otherCls, url): if issubclass(otherCls, AWSJobStore): srcBucket, srcKey = self._extractKeyInfoFromUrl(url, existing=True) info = self.FileInfo.create(srcKey.name) info.copyFrom(srcKey) info.save() return info.fileID else: return super(AWSJobS...
def _importFile(self, otherCls, url): if issubclass(otherCls, AWSJobStore): srcBucket, srcKey = self._extractKeyInfoFromUrl(url) info = self.FileInfo.create(srcKey.name) info.copyFrom(srcKey) info.save() return info.fileID else: return super(AWSJobStore, self)._im...
https://github.com/DataBiosphere/toil/issues/816
2016-04-26 14:13:37,623 ERROR:root: Got exception 'S3ResponseError: 400 Bad Request <Error><Code>InvalidRequest</Code><Message>The specified copy source is larger than the maximum allowable size for a copy source: 5368709120</Message><RequestId>CCB50A66B881B563</RequestId><HostId>1dAVKee/hXEaLCvisKyxUHlWtLbZwqcedEXOsKV...
boto.exception.S3ResponseError
def _readFromUrl(cls, url, writable): srcBucket, srcKey = cls._extractKeyInfoFromUrl(url, existing=True) srcKey.get_contents_to_file(writable)
def _readFromUrl(cls, url, writable): srcBucket, srcKey = cls._extractKeyInfoFromUrl(url) srcKey.get_contents_to_file(writable)
https://github.com/DataBiosphere/toil/issues/816
2016-04-26 14:13:37,623 ERROR:root: Got exception 'S3ResponseError: 400 Bad Request <Error><Code>InvalidRequest</Code><Message>The specified copy source is larger than the maximum allowable size for a copy source: 5368709120</Message><RequestId>CCB50A66B881B563</RequestId><HostId>1dAVKee/hXEaLCvisKyxUHlWtLbZwqcedEXOsKV...
boto.exception.S3ResponseError
def _extractKeyInfoFromUrl(url, existing=None): """ Extracts bucket and key from URL. The existing parameter determines if a particular state of existence should be enforced. Note also that if existing is not True and the key does not exist. :param existing: determines what the state :return: (...
def _extractKeyInfoFromUrl(url): """ :return: (bucket, key) """ s3 = boto.connect_s3() bucket = s3.get_bucket(url.netloc) key = bucket.new_key(url.path[1:]) return bucket, key
https://github.com/DataBiosphere/toil/issues/816
2016-04-26 14:13:37,623 ERROR:root: Got exception 'S3ResponseError: 400 Bad Request <Error><Code>InvalidRequest</Code><Message>The specified copy source is larger than the maximum allowable size for a copy source: 5368709120</Message><RequestId>CCB50A66B881B563</RequestId><HostId>1dAVKee/hXEaLCvisKyxUHlWtLbZwqcedEXOsKV...
boto.exception.S3ResponseError
def copyKeyMultipart(srcKey, dstBucketName, dstKeyName, headers=None): """ Copies a key from a source key to a destination key in multiple parts. Note that if the destination key exists it will be overwritten implicitly, and if it does not exist a new key will be created. :param boto.s3.key.Key src...
def copyKeyMultipart(srcKey, dstBucketName, dstKeyName, headers=None): """ Copies a key from a source key to a destination key in multiple parts. Note that if the destination key exists it will be overwritten implicitly, and if it does not exist a new key will be created. :param boto.s3.key.Key src...
https://github.com/DataBiosphere/toil/issues/816
2016-04-26 14:13:37,623 ERROR:root: Got exception 'S3ResponseError: 400 Bad Request <Error><Code>InvalidRequest</Code><Message>The specified copy source is larger than the maximum allowable size for a copy source: 5368709120</Message><RequestId>CCB50A66B881B563</RequestId><HostId>1dAVKee/hXEaLCvisKyxUHlWtLbZwqcedEXOsKV...
boto.exception.S3ResponseError
def statusUpdate(self, driver, update): """ Invoked when the status of a task has changed (e.g., a slave is lost and so the task is lost, a task finishes and an executor sends a status update saying so, etc). Note that returning from this callback _acknowledges_ receipt of this status update! If for ...
def statusUpdate(self, driver, update): """ Invoked when the status of a task has changed (e.g., a slave is lost and so the task is lost, a task finishes and an executor sends a status update saying so, etc). Note that returning from this callback _acknowledges_ receipt of this status update! If for ...
https://github.com/DataBiosphere/toil/issues/671
Failed to call scheduler's statusUpdate Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/batchSystems/mesos/batchSystem.py", line 458, in statusUpdate exitStatus = int(update.message) ValueError: invalid literal for int() with base 10: ''
ValueError
def launchTask(self, driver, task): """ Invoked by SchedulerDriver when a Mesos task should be launched by this executor """ def runTask(): log.debug("Running task %s", task.task_id.value) sendUpdate(mesos_pb2.TASK_RUNNING) # This is where task.data is first invoked. Using this ...
def launchTask(self, driver, task): """ Invoked by SchedulerDriver when a Mesos task should be launched by this executor """ def runTask(): log.debug("Running task %s", task.task_id.value) sendUpdate(mesos_pb2.TASK_RUNNING) # This is where task.data is first invoked. Using this ...
https://github.com/DataBiosphere/toil/issues/671
Failed to call scheduler's statusUpdate Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/batchSystems/mesos/batchSystem.py", line 458, in statusUpdate exitStatus = int(update.message) ValueError: invalid literal for int() with base 10: ''
ValueError
def runTask(): log.debug("Running task %s", task.task_id.value) sendUpdate(mesos_pb2.TASK_RUNNING) # This is where task.data is first invoked. Using this position to setup cleanupInfo taskData = pickle.loads(task.data) if self.workerCleanupInfo is not None: assert self.workerCleanupInfo == t...
def runTask(): log.debug("Running task %s", task.task_id.value) sendUpdate(mesos_pb2.TASK_RUNNING) # This is where task.data is first invoked. Using this position to setup cleanupInfo taskData = pickle.loads(task.data) if self.workerCleanupInfo is not None: assert self.workerCleanupInfo == t...
https://github.com/DataBiosphere/toil/issues/671
Failed to call scheduler's statusUpdate Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/batchSystems/mesos/batchSystem.py", line 458, in statusUpdate exitStatus = int(update.message) ValueError: invalid literal for int() with base 10: ''
ValueError
def launchTask(self, driver, task): """ Invoked by SchedulerDriver when a Mesos task should be launched by this executor """ def runTask(): log.debug("Running task %s", task.task_id.value) sendUpdate(mesos_pb2.TASK_RUNNING) try: popen = runJob(pickle.loads(task.data)...
def launchTask(self, driver, task): """ Invoked by SchedulerDriver when a Mesos task should be launched by this executor """ def runTask(): log.debug("Running task %s", task.task_id.value) sendUpdate(mesos_pb2.TASK_RUNNING) popen = runJob(pickle.loads(task.data)) self.ru...
https://github.com/DataBiosphere/toil/issues/671
Failed to call scheduler's statusUpdate Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/batchSystems/mesos/batchSystem.py", line 458, in statusUpdate exitStatus = int(update.message) ValueError: invalid literal for int() with base 10: ''
ValueError
def runTask(): log.debug("Running task %s", task.task_id.value) sendUpdate(mesos_pb2.TASK_RUNNING) try: popen = runJob(pickle.loads(task.data)) self.runningTasks[task.task_id.value] = popen.pid try: exitStatus = popen.wait() if 0 == exitStatus: ...
def runTask(): log.debug("Running task %s", task.task_id.value) sendUpdate(mesos_pb2.TASK_RUNNING) popen = runJob(pickle.loads(task.data)) self.runningTasks[task.task_id.value] = popen.pid try: exitStatus = popen.wait() if 0 == exitStatus: sendUpdate(mesos_pb2.TASK_FINISH...
https://github.com/DataBiosphere/toil/issues/671
Failed to call scheduler's statusUpdate Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/batchSystems/mesos/batchSystem.py", line 458, in statusUpdate exitStatus = int(update.message) ValueError: invalid literal for int() with base 10: ''
ValueError
def __updateState(self, intID, exitStatus): self.updatedJobsQueue.put((intID, exitStatus)) try: del self.runningJobMap[intID] except KeyError: log.warning( "Cannot find %i among running jobs. " "Sent update about its exit code of %i anyways.", intID, ...
def __updateState(self, intID, exitStatus): self.updatedJobsQueue.put((intID, exitStatus)) del self.runningJobMap[intID]
https://github.com/DataBiosphere/toil/issues/671
Failed to call scheduler's statusUpdate Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/batchSystems/mesos/batchSystem.py", line 458, in statusUpdate exitStatus = int(update.message) ValueError: invalid literal for int() with base 10: ''
ValueError
def writeGlobalFile(self, localFileName, cleanup=False): """ Takes a file (as a path) and uploads it to the job store. If the local file is a file returned by :func:`toil.job.Job.FileStore.getLocalTempFile` \ or is in a directory, or, recursively, a subdirectory, re...
def writeGlobalFile(self, localFileName, cleanup=False): """ Takes a file (as a path) and uploads it to the job store. If the local file is a file returned by :func:`toil.job.Job.FileStore.getLocalTempFile` \ or is in a directory, or, recursively, a subdirectory, re...
https://github.com/DataBiosphere/toil/issues/582
Exception in thread Thread-13: WARNING:toil.leader:t/V/job0sJG0Z: Traceback (most recent call last): WARNING:toil.leader:t/V/job0sJG0Z: File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner WARNING:toil.leader:t/V/job0sJG0Z: self.run() WARNING:toil.leader:t/V/job0sJG0Z: File "/usr/lib/pytho...
KeyError
def statsAndLoggingAggregatorProcess(jobStore, stop): """ The following function is used for collating stats/reporting log messages from the workers. Works inside of a separate process, collates as long as the stop flag is not True. """ # Overall timing startTime = time.time() startClock = ...
def statsAndLoggingAggregatorProcess(jobStore, stop): """ The following function is used for collating stats/reporting log messages from the workers. Works inside of a separate process, collates as long as the stop flag is not True. """ # Overall timing startTime = time.time() startClock = ...
https://github.com/DataBiosphere/toil/issues/609
INFO:toil.lib.bioio:Logging set at level: INFO INFO:toil.common:Using the single machine batch system INFO:toil.jobStores.fileJobStore:Jobstore directory is: /Users/sfrazer/projects/toil/toilWorkflow WARNING:toil.batchSystems.singleMachine:Limiting maxCores to CPU count of system (8). WARNING:toil.batchSystems.singleMa...
AttributeError
def callback(fileHandle): stats = json.load(fileHandle, object_hook=Expando) try: logs = stats.workers.log except AttributeError: # To be expected if there were no calls to logToMaster() pass else: for message in logs: logger.log( int(message.l...
def callback(fileHandle): stats = json.load(fileHandle, object_hook=Expando) workers = stats.workers try: logs = workers.log except AttributeError: # To be expected if there were no calls to logToMaster() pass else: for message in logs: logger.log( ...
https://github.com/DataBiosphere/toil/issues/609
INFO:toil.lib.bioio:Logging set at level: INFO INFO:toil.common:Using the single machine batch system INFO:toil.jobStores.fileJobStore:Jobstore directory is: /Users/sfrazer/projects/toil/toilWorkflow WARNING:toil.batchSystems.singleMachine:Limiting maxCores to CPU count of system (8). WARNING:toil.batchSystems.singleMa...
AttributeError
def mainLoop(config, batchSystem, jobStore, rootJobWrapper): """ This is the main loop from which jobs are issued and processed. :raises: toil.leader.FailedJobsException if at the end of function their remain failed jobs :return: The return value of the root job's run function. """ ######...
def mainLoop(config, batchSystem, jobStore, rootJobWrapper): """ This is the main loop from which jobs are issued and processed. :raises: toil.leader.FailedJobsException if at the end of function their remain failed jobs :return: The return value of the root job's run function. """ ######...
https://github.com/DataBiosphere/toil/issues/609
INFO:toil.lib.bioio:Logging set at level: INFO INFO:toil.common:Using the single machine batch system INFO:toil.jobStores.fileJobStore:Jobstore directory is: /Users/sfrazer/projects/toil/toilWorkflow WARNING:toil.batchSystems.singleMachine:Limiting maxCores to CPU count of system (8). WARNING:toil.batchSystems.singleMa...
AttributeError
def retryOnAzureTimeout(exception): timeoutMsg = "could not be completed within the specified time" busyMsg = "Service Unavailable" return isinstance(exception, WindowsAzureError) and ( timeoutMsg in str(exception) or busyMsg in str(exception) )
def retryOnAzureTimeout(exception): timeoutMsg = "could not be completed within the specified time" return isinstance(exception, WindowsAzureError) and timeoutMsg in str(exception)
https://github.com/DataBiosphere/toil/issues/583
INFO:toil.batchSystems.mesos.batchSystem:Preparing to launch Mesos task 9468 using offer 20151124-210426-83886090-5050-35140-O28977... INFO:toil.batchSystems.mesos.batchSystem:...launching Mesos task 9468 INFO:toil.batchSystems.mesos.batchSystem:Preparing to launch Mesos task 9469 using offer 20151124-210426-83886090-5...
azure.WindowsAzureError
def _startParasol(self, numCores=None, memory=None): if numCores is None: numCores = multiprocessing.cpu_count() if memory is None: memory = physicalMemory() self.numCores = numCores self.memory = memory self.leader = self.ParasolLeaderThread() self.leader.start() self.worker...
def _startParasol(self, numCores=None, memory=None): if numCores is None: numCores = multiprocessing.cpu_count() if memory is None: memory = self._physicalMemory() self.numCores = numCores self.memory = memory self.leader = self.ParasolLeaderThread() self.leader.start() self....
https://github.com/DataBiosphere/toil/issues/587
Traceback (most recent call last): File "wdltoil.py", line 1, in <module> from toil.job import Job File "/Users/sfrazer/projects/toil/src/toil/job.py", line 36, in <module> from toil.common import loadJobStore File "/Users/sfrazer/projects/toil/src/toil/common.py", line 27, in <module> from toil.batchSystems.singleMach...
ValueError
def logToMaster(self, text, level=logging.INFO): """ Send a logging message to the leader. The message will also be \ logged by the worker at the same level. :param string: The string to log. :param int level: The logging level. """ logger...
def logToMaster(self, string, level=logging.INFO): """ Send a logging message to the leader. The message will also be \ logged by the worker at the same level. :param string: The string to log. :param int level: The logging level. """ logg...
https://github.com/DataBiosphere/toil/issues/427
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 408, in <module> main() File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 392, in main jobStore.writeStatsAndLogging(ET.tostring(elementNode)) File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1...
UnicodeDecodeError
def _execute(self, jobWrapper, stats, localTempDir, jobStore, fileStore): """ This is the core method for running the job within a worker. """ if stats != None: startTime = time.time() startClock = getTotalCpuTime() baseDir = os.getcwd() # Run the job returnValues = self.run(...
def _execute(self, jobWrapper, stats, localTempDir, jobStore, fileStore): """ This is the core method for running the job within a worker. """ if stats != None: startTime = time.time() startClock = getTotalCpuTime() baseDir = os.getcwd() # Run the job returnValues = self.run(...
https://github.com/DataBiosphere/toil/issues/427
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 408, in <module> main() File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 392, in main jobStore.writeStatsAndLogging(ET.tostring(elementNode)) File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1...
UnicodeDecodeError
def readStatsAndLogging(self, callback, readAll=False): """ Reads stats/logging strings accumulated by the writeStatsAndLogging() method. For each stats/logging string this method calls the given callback function with an open, readable file handle from which the stats string can be read. Returns the nu...
def readStatsAndLogging(self, statsAndLoggingCallBackFn): """ Reads stats/logging strings accumulated by "writeStatsAndLogging" function. For each stats/logging file calls the statsAndLoggingCallBackFn with an open, readable file-handle that can be used to parse the stats. Returns the number of stat...
https://github.com/DataBiosphere/toil/issues/427
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 408, in <module> main() File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 392, in main jobStore.writeStatsAndLogging(ET.tostring(elementNode)) File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1...
UnicodeDecodeError
def readStatsAndLogging(self, callback, readAll=False): itemsProcessed = 0 for info in self._readStatsAndLogging(callback, self.statsFileOwnerID): info._ownerID = self.readStatsFileOwnerID info.save() itemsProcessed += 1 if readAll: for _ in self._readStatsAndLogging(callba...
def readStatsAndLogging(self, statsCallBackFn): itemsProcessed = 0 items = None for attempt in retry_sdb(): with attempt: items = list( self.filesDomain.select( consistent_read=True, query="select * from `%s` where ownerID='%s'" ...
https://github.com/DataBiosphere/toil/issues/427
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 408, in <module> main() File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 392, in main jobStore.writeStatsAndLogging(ET.tostring(elementNode)) File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1...
UnicodeDecodeError
def readStatsAndLogging(self, callback, readAll=False): suffix = "_old" numStatsFiles = 0 for entity in self.statsFileIDs.query_entities(): jobStoreFileID = entity.RowKey hasBeenRead = len(jobStoreFileID) > self.jobIDLength if not hasBeenRead: with self._downloadStream(jo...
def readStatsAndLogging(self, statsAndLoggingCallbackFn): numStatsFiles = 0 for entity in self.statsFileIDs.query_entities(): jobStoreFileID = entity.RowKey with self._downloadStream(jobStoreFileID, self.statsFiles) as fd: statsAndLoggingCallbackFn(fd) self.statsFiles.delete_...
https://github.com/DataBiosphere/toil/issues/427
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 408, in <module> main() File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 392, in main jobStore.writeStatsAndLogging(ET.tostring(elementNode)) File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1...
UnicodeDecodeError
def readStatsAndLogging(self, callback, readAll=False): numberOfFilesProcessed = 0 for tempDir in self._tempDirectories(): for tempFile in os.listdir(tempDir): if tempFile.startswith("stats"): absTempFile = os.path.join(tempDir, tempFile) if readAll or not tem...
def readStatsAndLogging(self, statsAndLoggingCallBackFn): numberOfFilesProcessed = 0 for tempDir in self._tempDirectories(): for tempFile in os.listdir(tempDir): if tempFile.startswith("stats"): absTempFile = os.path.join(tempDir, tempFile) if not tempFile.end...
https://github.com/DataBiosphere/toil/issues/427
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 408, in <module> main() File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 392, in main jobStore.writeStatsAndLogging(ET.tostring(elementNode)) File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1...
UnicodeDecodeError
def statsAndLoggingAggregatorProcess(jobStore, stop): """ The following function is used for collating stats/reporting log messages from the workers. Works inside of a separate process, collates as long as the stop flag is not True. """ # Overall timing startTime = time.time() startClock = ...
def statsAndLoggingAggregatorProcess(jobStore, stop): """ The following function is used for collating stats/reporting log messages from the workers. Works inside of a separate process, collates as long as the stop flag is not True. """ # Overall timing startTime = time.time() startClock = g...
https://github.com/DataBiosphere/toil/issues/427
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 408, in <module> main() File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 392, in main jobStore.writeStatsAndLogging(ET.tostring(elementNode)) File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1...
UnicodeDecodeError
def __init__( self, accountName, namePrefix, config=None, jobChunkSize=maxAzureTablePropertySize ): self.jobChunkSize = jobChunkSize self.keyPath = None self.account_key = _fetchAzureAccountKey(accountName) # Table names have strict requirements in Azure self.namePrefix = self._sanitizeTableNa...
def __init__(self, accountName, namePrefix, config=None, jobChunkSize=65535): self.jobChunkSize = jobChunkSize self.keyPath = None self.account_key = _fetchAzureAccountKey(accountName) # Table names have strict requirements in Azure self.namePrefix = self._sanitizeTableName(namePrefix) log.deb...
https://github.com/DataBiosphere/toil/issues/577
WARNING:toil.leader:4f782575_20d9_48bb_bc1f_94cc8b207479: Traceback (most recent call last): WARNING:toil.leader:4f782575_20d9_48bb_bc1f_94cc8b207479: File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 282, in main WARNING:toil.leader:4f782575_20d9_48bb_bc1f_94cc8b207479: fileStore=fileStore...
WindowsAzureError
def fromItem(cls, item): """ :type item: dict :rtype: AzureJob """ chunkedJob = item.items() chunkedJob.sort() if len(chunkedJob) == 1: # First element of list = tuple, second element of tuple = serialized job wholeJobString = chunkedJob[0][1].value else: wholeJob...
def fromItem(cls, item): """ :type item: dict :rtype: AzureJob """ chunkedJob = item.items() chunkedJob.sort() if len(chunkedJob) == 1: # First element of list = tuple, second element of tuple = serialized job wholeJobString = chunkedJob[0][1] else: wholeJobString...
https://github.com/DataBiosphere/toil/issues/577
WARNING:toil.leader:4f782575_20d9_48bb_bc1f_94cc8b207479: Traceback (most recent call last): WARNING:toil.leader:4f782575_20d9_48bb_bc1f_94cc8b207479: File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 282, in main WARNING:toil.leader:4f782575_20d9_48bb_bc1f_94cc8b207479: fileStore=fileStore...
WindowsAzureError
def toItem(self, chunkSize=maxAzureTablePropertySize): """ :param chunkSize: the size of a chunk for splitting up the serialized job into chunks that each fit into a property value of the an Azure table entity :rtype: dict """ assert chunkSize <= maxAzureTablePropertySize item = {} seria...
def toItem(self, chunkSize=65535): """ :rtype: dict """ item = {} serializedAndEncodedJob = base64.b64encode(bz2.compress(cPickle.dumps(self))) jobChunks = [ serializedAndEncodedJob[i : i + chunkSize] for i in range(0, len(serializedAndEncodedJob), chunkSize) ] for attrib...
https://github.com/DataBiosphere/toil/issues/577
WARNING:toil.leader:4f782575_20d9_48bb_bc1f_94cc8b207479: Traceback (most recent call last): WARNING:toil.leader:4f782575_20d9_48bb_bc1f_94cc8b207479: File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 282, in main WARNING:toil.leader:4f782575_20d9_48bb_bc1f_94cc8b207479: fileStore=fileStore...
WindowsAzureError
def _load(cls, leaderPath): """ :type leaderPath: str """ bytesIO = BytesIO() # PyZipFile compiles .py files on the fly, filters out any non-Python files and # distinguishes between packages and simple directories. with PyZipFile(file=bytesIO, mode="w") as zipFile: zipFile.writepy(le...
def _load(cls, leaderPath): bytesIO = BytesIO() with ZipFile(file=bytesIO, mode="w") as zipFile: for dirPath, fileNames, dirNames in os.walk(leaderPath): assert dirPath.startswith(leaderPath) for fileName in fileNames: filePath = os.path.join(dirPath, fileName) ...
https://github.com/DataBiosphere/toil/issues/565
INFO:toil.batchSystems.mesos.batchSystem:Preparing to launch Mesos task 0 using offer 20151120-222317-83886090-5050-35148-O5... INFO:toil.batchSystems.mesos.batchSystem:...launching Mesos task 0 WARNING:toil.leader:The jobWrapper seems to have left a log file, indicating failure: 46c1efec_0849_4ce3_b74d_c74f1f0602a4 WA...
ImportError
def forModule(cls, name): """ Return an instance of this class representing the module of the given name. If the given module name is "__main__", it will be translated to the actual file name of the top-level script without the .py or .pyc extension. This method assumes that the module with the spec...
def forModule(cls, name): """ Return an instance of this class representing the module of the given name. If the given module name is "__main__", it will be translated to the actual file name of the top-level script without the .py or .pyc extension. This method assumes that the module with the spec...
https://github.com/DataBiosphere/toil/issues/565
INFO:toil.batchSystems.mesos.batchSystem:Preparing to launch Mesos task 0 using offer 20151120-222317-83886090-5050-35148-O5... INFO:toil.batchSystems.mesos.batchSystem:...launching Mesos task 0 WARNING:toil.leader:The jobWrapper seems to have left a log file, indicating failure: 46c1efec_0849_4ce3_b74d_c74f1f0602a4 WA...
ImportError
def _check_conflict(cls, dirPath, name): """ Check whether the module of the given name conflicts with another module on the sys.path. :param dirPath: the directory from which the module was originally loaded :param name: the mpdule name """ old_sys_path = sys.path try: sys.path = [...
def _check_conflict(cls, dirPath, name): """ Check whether the module of the given name conflicts with another module on the sys.path. :param dirPath: the directory from which the module was originally loaded :param name: the mpdule name """ old_sys_path = sys.path try: sys.path = [...
https://github.com/DataBiosphere/toil/issues/565
INFO:toil.batchSystems.mesos.batchSystem:Preparing to launch Mesos task 0 using offer 20151120-222317-83886090-5050-35148-O5... INFO:toil.batchSystems.mesos.batchSystem:...launching Mesos task 0 WARNING:toil.leader:The jobWrapper seems to have left a log file, indicating failure: 46c1efec_0849_4ce3_b74d_c74f1f0602a4 WA...
ImportError
def localize(self): """ Check if this module was saved as a resource. If it was, return a new module descriptor that points to a local copy of that resource. Should only be called on a worker node. On the leader, this method returns this resource, i.e. self. :rtype: toil.resource.Resource """ ...
def localize(self): """ Check if this module was saved as a resource. If it was, return a new module descriptor that points to a local copy of that resource. Should only be called on a worker node. :rtype: toil.resource.Resource """ resource = Resource.lookup(self._resourcePath) if resource...
https://github.com/DataBiosphere/toil/issues/565
INFO:toil.batchSystems.mesos.batchSystem:Preparing to launch Mesos task 0 using offer 20151120-222317-83886090-5050-35148-O5... INFO:toil.batchSystems.mesos.batchSystem:...launching Mesos task 0 WARNING:toil.leader:The jobWrapper seems to have left a log file, indicating failure: 46c1efec_0849_4ce3_b74d_c74f1f0602a4 WA...
ImportError
def globalize(self): """ Reverse the effect of localize(). """ try: with open(os.path.join(self.dirPath, ".original")) as f: return self.__class__(*json.loads(f.read())) except IOError as e: if e.errno == errno.ENOENT: if self._runningOnWorker(): ...
def globalize(self): try: with open(os.path.join(self.dirPath, ".original")) as f: return self.__class__(*json.loads(f.read())) except IOError as e: if e.errno == errno.ENOENT: log.warn("Can't globalize module %r.", self) return self else: ...
https://github.com/DataBiosphere/toil/issues/565
INFO:toil.batchSystems.mesos.batchSystem:Preparing to launch Mesos task 0 using offer 20151120-222317-83886090-5050-35148-O5... INFO:toil.batchSystems.mesos.batchSystem:...launching Mesos task 0 WARNING:toil.leader:The jobWrapper seems to have left a log file, indicating failure: 46c1efec_0849_4ce3_b74d_c74f1f0602a4 WA...
ImportError
def _resourcePath(self): """ The path to the directory that should be used when shipping this module and its siblings around as a resource. """ if "." in self.name: return os.path.join(self.dirPath, self._rootPackage()) else: initName = self._initModuleName(self.dirPath) ...
def _resourcePath(self): """ The path to the file or package directory that should be used when shipping this module around as a resource. """ return self.dirPath if "." in self.name else self.filePath
https://github.com/DataBiosphere/toil/issues/565
INFO:toil.batchSystems.mesos.batchSystem:Preparing to launch Mesos task 0 using offer 20151120-222317-83886090-5050-35148-O5... INFO:toil.batchSystems.mesos.batchSystem:...launching Mesos task 0 WARNING:toil.leader:The jobWrapper seems to have left a log file, indicating failure: 46c1efec_0849_4ce3_b74d_c74f1f0602a4 WA...
ImportError
def _loadUserModule(cls, userModule): """ Imports and returns the module object represented by the given module descriptor. :type userModule: ModuleDescriptor """ if not userModule.belongsToToil: userModule = userModule.localize() if userModule.dirPath not in sys.path: sys.path....
def _loadUserModule(cls, userModule): """ Imports and returns the module object represented by the given module descriptor. :type userModule: ModuleDescriptor """ if not userModule.belongsToToil: userModule = userModule.localize() if userModule.dirPath not in sys.path: sys.path....
https://github.com/DataBiosphere/toil/issues/565
INFO:toil.batchSystems.mesos.batchSystem:Preparing to launch Mesos task 0 using offer 20151120-222317-83886090-5050-35148-O5... INFO:toil.batchSystems.mesos.batchSystem:...launching Mesos task 0 WARNING:toil.leader:The jobWrapper seems to have left a log file, indicating failure: 46c1efec_0849_4ce3_b74d_c74f1f0602a4 WA...
ImportError
def __init__(self): # Core options self.jobStore = os.path.abspath("./toil") self.logLevel = getLogLevelString() self.workDir = None self.stats = False # Because the stats option needs the jobStore to persist past the end of the run, # the clean default value depends the specified stats opt...
def __init__(self): # Core options self.jobStore = os.path.abspath("./toil") self.logLevel = getLogLevelString() self.workDir = None self.stats = False # Because the stats option needs the jobStore to persist past the end of the run, # the clean default value depends the specified stats opt...
https://github.com/DataBiosphere/toil/issues/551
Traceback (most recent call last): File "hello_world.py", line 10, in <module> result = Job.Runner.startToil( job, options ) File "/usr/local/lib/python2.7/dist-packages/toil/job.py", line 436, in startToil rootJob = job._serialiseFirstJob(jobStore) File "/usr/local/lib/python2.7/dist-packages/toil/job.py", line 1246, ...
RuntimeError
def setOptions(self, options): """ Creates a config object from the options object. """ from bd2k.util.humanize import human2bytes # This import is used to convert # from human readable quantites to integers def setOption(varName, parsingFn=None, checkFn=None): # If options object has ...
def setOptions(self, options): """ Creates a config object from the options object. """ from bd2k.util.humanize import human2bytes # This import is used to convert # from human readable quantites to integers def setOption(varName, parsingFn=None, checkFn=None): # If options object has ...
https://github.com/DataBiosphere/toil/issues/551
Traceback (most recent call last): File "hello_world.py", line 10, in <module> result = Job.Runner.startToil( job, options ) File "/usr/local/lib/python2.7/dist-packages/toil/job.py", line 436, in startToil rootJob = job._serialiseFirstJob(jobStore) File "/usr/local/lib/python2.7/dist-packages/toil/job.py", line 1246, ...
RuntimeError
def setOption(varName, parsingFn=None, checkFn=None): # If options object has the option "varName" specified # then set the "varName" attrib to this value in the config object x = getattr(options, varName, None) if x is not None: if parsingFn is not None: x = parsingFn(x) if ...
def setOption(varName, parsingFn=None, checkFn=None): # If options object has the option "varName" specified # then set the "varName" attrib to this value in the config object x = getattr(options, varName, None) if x != None: if parsingFn != None: x = parsingFn(x) if checkFn ...
https://github.com/DataBiosphere/toil/issues/551
Traceback (most recent call last): File "hello_world.py", line 10, in <module> result = Job.Runner.startToil( job, options ) File "/usr/local/lib/python2.7/dist-packages/toil/job.py", line 436, in startToil rootJob = job._serialiseFirstJob(jobStore) File "/usr/local/lib/python2.7/dist-packages/toil/job.py", line 1246, ...
RuntimeError
def _addOptions(addGroupFn, config): # # Core options # addOptionFn = addGroupFn( "toil core options", "Options to specify the \ location of the toil and turn on stats collation about the performance of jobs.", ) # TODO - specify how this works when path is AWS addOptionF...
def _addOptions(addGroupFn, config): # # Core options # addOptionFn = addGroupFn( "toil core options", "Options to specify the \ location of the toil and turn on stats collation about the performance of jobs.", ) # TODO - specify how this works when path is AWS addOptionF...
https://github.com/DataBiosphere/toil/issues/551
Traceback (most recent call last): File "hello_world.py", line 10, in <module> result = Job.Runner.startToil( job, options ) File "/usr/local/lib/python2.7/dist-packages/toil/job.py", line 436, in startToil rootJob = job._serialiseFirstJob(jobStore) File "/usr/local/lib/python2.7/dist-packages/toil/job.py", line 1246, ...
RuntimeError
def _createEmptyJobForJob(self, jobStore, command=None, predecessorNumber=0): """ Create an empty job for the job. """ requirements = self.effectiveRequirements(jobStore.config) del requirements.cache return jobStore.create( command=command, predecessorNumber=predecessorNumber, **require...
def _createEmptyJobForJob(self, jobStore, command=None, predecessorNumber=0): """ Create an empty job for the job. """ memory = ( self.memory if self.memory is not None else float(jobStore.config.defaultMemory) ) cores = ( self.cores if self.cores is not None else float(jobStore....
https://github.com/DataBiosphere/toil/issues/551
Traceback (most recent call last): File "hello_world.py", line 10, in <module> result = Job.Runner.startToil( job, options ) File "/usr/local/lib/python2.7/dist-packages/toil/job.py", line 436, in startToil rootJob = job._serialiseFirstJob(jobStore) File "/usr/local/lib/python2.7/dist-packages/toil/job.py", line 1246, ...
RuntimeError
def __init__(self, config, maxCores, maxMemory, maxDisk): """This method must be called. The config object is setup by the toilSetup script and has configuration parameters for the jobtree. You can add stuff to that script to get parameters for your batch system. """ self.config = config sel...
def __init__(self, config, maxCores, maxMemory, maxDisk): """This method must be called. The config object is setup by the toilSetup script and has configuration parameters for the jobtree. You can add stuff to that script to get parameters for your batch system. """ self.config = config sel...
https://github.com/DataBiosphere/toil/issues/421
DEBUG:toil.batchSystems.mesos.executor:Starting executor I0924 22:47:08.587648 43191 exec.cpp:132] Version: 0.22.0 I0924 22:47:08.592193 43192 exec.cpp:206] Executor registered on slave 20150924-214557-83886090-5050-44087-S8 INFO:toil.batchSystems.mesos.executor:Registered with framework DEBUG:toil.batchSystems.mesos.e...
ConfigParser.NoSectionError
def __init__( self, config, maxCores, maxMemory, maxDisk, masterAddress, userScript=None, toilDistribution=None, ): AbstractBatchSystem.__init__(self, config, maxCores, maxMemory, maxDisk) # The hot-deployed resources representing the user script and the toil distribution # r...
def __init__( self, config, maxCores, maxMemory, maxDisk, masterAddress, userScript=None, toilDistribution=None, ): AbstractBatchSystem.__init__(self, config, maxCores, maxMemory, maxDisk) # The hot-deployed resources representing the user script and the toil distribution # r...
https://github.com/DataBiosphere/toil/issues/421
DEBUG:toil.batchSystems.mesos.executor:Starting executor I0924 22:47:08.587648 43191 exec.cpp:132] Version: 0.22.0 I0924 22:47:08.592193 43192 exec.cpp:206] Executor registered on slave 20150924-214557-83886090-5050-44087-S8 INFO:toil.batchSystems.mesos.executor:Registered with framework DEBUG:toil.batchSystems.mesos.e...
ConfigParser.NoSectionError
def issueBatchJob(self, command, memory, cores, disk): """ Issues the following command returning a unique jobID. Command is the string to run, memory is an int giving the number of bytes the job needs to run in and cores is the number of cpus needed for the job and error-file is the path of the file to...
def issueBatchJob(self, command, memory, cores, disk): """ Issues the following command returning a unique jobID. Command is the string to run, memory is an int giving the number of bytes the job needs to run in and cores is the number of cpus needed for the job and error-file is the path of the file to...
https://github.com/DataBiosphere/toil/issues/421
DEBUG:toil.batchSystems.mesos.executor:Starting executor I0924 22:47:08.587648 43191 exec.cpp:132] Version: 0.22.0 I0924 22:47:08.592193 43192 exec.cpp:206] Executor registered on slave 20150924-214557-83886090-5050-44087-S8 INFO:toil.batchSystems.mesos.executor:Registered with framework DEBUG:toil.batchSystems.mesos.e...
ConfigParser.NoSectionError
def launchTask(self, driver, task): """ Invoked by SchedulerDriver when a Mesos task should be launched by this executor """ def runTask(): log.debug("Running task %s", task.task_id.value) sendUpdate(mesos_pb2.TASK_RUNNING) popen = runJob(pickle.loads(task.data)) self.ru...
def launchTask(self, driver, task): """ Invoked by SchedulerDriver when a Mesos task should be launched by this executor """ def runTask(): log.debug("Running task %s", task.task_id.value) sendUpdate(mesos_pb2.TASK_RUNNING) popen = runJob(pickle.loads(task.data)) self.ru...
https://github.com/DataBiosphere/toil/issues/421
DEBUG:toil.batchSystems.mesos.executor:Starting executor I0924 22:47:08.587648 43191 exec.cpp:132] Version: 0.22.0 I0924 22:47:08.592193 43192 exec.cpp:206] Executor registered on slave 20150924-214557-83886090-5050-44087-S8 INFO:toil.batchSystems.mesos.executor:Registered with framework DEBUG:toil.batchSystems.mesos.e...
ConfigParser.NoSectionError
def runJob(job): """ :type job: toil.batchSystems.mesos.ToilJob :rtype: subprocess.Popen """ if job.userScript: job.userScript.register() log.debug("Invoking command: '%s'", job.command) with self.popenLock: return subprocess.Popen( job.command, shell=True, env=d...
def runJob(job): """ :type job: toil.batchSystems.mesos.ToilJob :rtype: subprocess.Popen """ if job.userScript: job.userScript.register() log.debug("Invoking command: '%s'", job.command) with self.popenLock: return subprocess.Popen(job.command, shell=True)
https://github.com/DataBiosphere/toil/issues/421
DEBUG:toil.batchSystems.mesos.executor:Starting executor I0924 22:47:08.587648 43191 exec.cpp:132] Version: 0.22.0 I0924 22:47:08.592193 43192 exec.cpp:206] Executor registered on slave 20150924-214557-83886090-5050-44087-S8 INFO:toil.batchSystems.mesos.executor:Registered with framework DEBUG:toil.batchSystems.mesos.e...
ConfigParser.NoSectionError
def worker(self, inputQueue): while True: args = inputQueue.get() if args is None: log.debug("Received queue sentinel.") break jobCommand, jobID, jobCores, jobMemory, jobDisk, environment = args try: coreFractions = int(jobCores / self.minCores) ...
def worker(self, inputQueue): while True: args = inputQueue.get() if args is None: log.debug("Received queue sentinel.") break jobCommand, jobID, jobCores, jobMemory, jobDisk = args try: coreFractions = int(jobCores / self.minCores) log...
https://github.com/DataBiosphere/toil/issues/421
DEBUG:toil.batchSystems.mesos.executor:Starting executor I0924 22:47:08.587648 43191 exec.cpp:132] Version: 0.22.0 I0924 22:47:08.592193 43192 exec.cpp:206] Executor registered on slave 20150924-214557-83886090-5050-44087-S8 INFO:toil.batchSystems.mesos.executor:Registered with framework DEBUG:toil.batchSystems.mesos.e...
ConfigParser.NoSectionError
def issueBatchJob(self, command, memory, cores, disk): """ Adds the command and resources to a queue to be run. """ # Round cores to minCores and apply scale cores = math.ceil(cores * self.scale / self.minCores) * self.minCores assert cores <= self.maxCores, ( "job is requesting {} cores...
def issueBatchJob(self, command, memory, cores, disk): """ Adds the command and resources to a queue to be run. """ # Round cores to minCores and apply scale cores = math.ceil(cores * self.scale / self.minCores) * self.minCores assert cores <= self.maxCores, ( "job is requesting {} cores...
https://github.com/DataBiosphere/toil/issues/421
DEBUG:toil.batchSystems.mesos.executor:Starting executor I0924 22:47:08.587648 43191 exec.cpp:132] Version: 0.22.0 I0924 22:47:08.592193 43192 exec.cpp:206] Executor registered on slave 20150924-214557-83886090-5050-44087-S8 INFO:toil.batchSystems.mesos.executor:Registered with framework DEBUG:toil.batchSystems.mesos.e...
ConfigParser.NoSectionError
def __init__(self): # Core options self.jobStore = os.path.abspath("./toil") self.logLevel = getLogLevelString() self.workDir = None self.stats = False # Because the stats option needs the jobStore to persist past the end of the run, # the clean default value depends the specified stats opt...
def __init__(self): # Core options self.jobStore = os.path.abspath("./toil") self.logLevel = getLogLevelString() self.workDir = None self.stats = False # Because the stats option needs the jobStore to persist past the end of the run, # the clean default value depends the specified stats opt...
https://github.com/DataBiosphere/toil/issues/421
DEBUG:toil.batchSystems.mesos.executor:Starting executor I0924 22:47:08.587648 43191 exec.cpp:132] Version: 0.22.0 I0924 22:47:08.592193 43192 exec.cpp:206] Executor registered on slave 20150924-214557-83886090-5050-44087-S8 INFO:toil.batchSystems.mesos.executor:Registered with framework DEBUG:toil.batchSystems.mesos.e...
ConfigParser.NoSectionError
def setOptions(self, options): """ Creates a config object from the options object. """ from bd2k.util.humanize import human2bytes # This import is used to convert # from human readable quantites to integers def setOption(varName, parsingFn=None, checkFn=None): # If options object has ...
def setOptions(self, options): """ Creates a config object from the options object. """ from bd2k.util.humanize import human2bytes # This import is used to convert # from human readable quantites to integers def setOption(varName, parsingFn=None, checkFn=None): # If options object has ...
https://github.com/DataBiosphere/toil/issues/421
DEBUG:toil.batchSystems.mesos.executor:Starting executor I0924 22:47:08.587648 43191 exec.cpp:132] Version: 0.22.0 I0924 22:47:08.592193 43192 exec.cpp:206] Executor registered on slave 20150924-214557-83886090-5050-44087-S8 INFO:toil.batchSystems.mesos.executor:Registered with framework DEBUG:toil.batchSystems.mesos.e...
ConfigParser.NoSectionError
def _addOptions(addGroupFn, config): # # Core options # addOptionFn = addGroupFn( "toil core options", "Options to specify the \ location of the toil and turn on stats collation about the performance of jobs.", ) # TODO - specify how this works when path is AWS addOptionF...
def _addOptions(addGroupFn, config): # # Core options # addOptionFn = addGroupFn( "toil core options", "Options to specify the \ location of the toil and turn on stats collation about the performance of jobs.", ) # TODO - specify how this works when path is AWS addOptionF...
https://github.com/DataBiosphere/toil/issues/421
DEBUG:toil.batchSystems.mesos.executor:Starting executor I0924 22:47:08.587648 43191 exec.cpp:132] Version: 0.22.0 I0924 22:47:08.592193 43192 exec.cpp:206] Executor registered on slave 20150924-214557-83886090-5050-44087-S8 INFO:toil.batchSystems.mesos.executor:Registered with framework DEBUG:toil.batchSystems.mesos.e...
ConfigParser.NoSectionError
def setupToil(options, userScript=None): """ Creates the data-structures needed for running a toil. :type userScript: toil.resource.ModuleDescriptor """ # Make the default config object config = Config() # Get options specified by the user config.setOptions(options) if not options.r...
def setupToil(options, userScript=None): """ Creates the data-structures needed for running a toil. :type userScript: toil.resource.ModuleDescriptor """ # Make the default config object config = Config() # Get options specified by the user config.setOptions(options) if not options.r...
https://github.com/DataBiosphere/toil/issues/421
DEBUG:toil.batchSystems.mesos.executor:Starting executor I0924 22:47:08.587648 43191 exec.cpp:132] Version: 0.22.0 I0924 22:47:08.592193 43192 exec.cpp:206] Executor registered on slave 20150924-214557-83886090-5050-44087-S8 INFO:toil.batchSystems.mesos.executor:Registered with framework DEBUG:toil.batchSystems.mesos.e...
ConfigParser.NoSectionError
def __init__(self, accountName, namePrefix, config=None, jobChunkSize=65535): self.jobChunkSize = jobChunkSize self.keyPath = None self.account_key = _fetchAzureAccountKey(accountName) # Table names have strict requirements in Azure self.namePrefix = self._sanitizeTableName(namePrefix) log.deb...
def __init__(self, accountName, namePrefix, config=None, jobChunkSize=65535): self.jobChunkSize = jobChunkSize self.keyPath = None account_key = _fetchAzureAccountKey(accountName) # Table names have strict requirements in Azure self.namePrefix = self._sanitizeTableName(namePrefix) log.debug("C...
https://github.com/DataBiosphere/toil/issues/421
DEBUG:toil.batchSystems.mesos.executor:Starting executor I0924 22:47:08.587648 43191 exec.cpp:132] Version: 0.22.0 I0924 22:47:08.592193 43192 exec.cpp:206] Executor registered on slave 20150924-214557-83886090-5050-44087-S8 INFO:toil.batchSystems.mesos.executor:Registered with framework DEBUG:toil.batchSystems.mesos.e...
ConfigParser.NoSectionError
def worker(self, inputQueue): while True: args = inputQueue.get() if args is None: log.debug("Received queue sentinel.") break jobCommand, jobID, jobCores, jobMemory, jobDisk, environment = args try: coreFractions = int(jobCores / self.minCores) ...
def worker(self, inputQueue): while True: args = inputQueue.get() if args is None: log.debug("Received queue sentinel.") break jobCommand, jobID, jobCores, jobMemory, jobDisk = args try: coreFractions = int(jobCores / self.minCores) log...
https://github.com/DataBiosphere/toil/issues/421
DEBUG:toil.batchSystems.mesos.executor:Starting executor I0924 22:47:08.587648 43191 exec.cpp:132] Version: 0.22.0 I0924 22:47:08.592193 43192 exec.cpp:206] Executor registered on slave 20150924-214557-83886090-5050-44087-S8 INFO:toil.batchSystems.mesos.executor:Registered with framework DEBUG:toil.batchSystems.mesos.e...
ConfigParser.NoSectionError
def _serialiseJob(self, jobStore, jobsToJobWrappers, rootJobWrapper): """ Pickle a job and its jobWrapper to disk. """ # Pickle the job so that its run method can be run at a later time. # Drop out the children/followOns/predecessors/services - which are # all recorded within the jobStore and do...
def _serialiseJob(self, jobStore, jobsToJobWrappers, rootJobWrapper): """ Pickle a job and its jobWrapper to disk. """ # Pickle the job so that its run method can be run at a later time. # Drop out the children/followOns/predecessors/services - which are # all recorded within the jobStore and do...
https://github.com/DataBiosphere/toil/issues/423
WARNING:toil.leader:732fd38e_d585_4405_8d6b_c37a982f1ba5: ---TOIL WORKER OUTPUT LOG--- WARNING:toil.leader:732fd38e_d585_4405_8d6b_c37a982f1ba5: Next available file descriptor: 5 WARNING:toil.leader:732fd38e_d585_4405_8d6b_c37a982f1ba5: DEBUG:__main__:Next available file descriptor: 5 WARNING:toil.leader:732fd38e...
AttributeError
def _serialiseJob(self, jobStore, jobsToJobWrappers, rootJobWrapper): """ Pickle a job and its jobWrapper to disk. """ # Pickle the job so that its run method can be run at a later time. # Drop out the children/followOns/predecessors/services - which are # all recorded within the jobStore and do...
def _serialiseJob(self, jobStore, jobsToJobWrappers, rootJobWrapper): """ Pickle a job and its jobWrapper to disk. """ # Pickle the job so that its run method can be run at a later time. # Drop out the children/followOns/predecessors/services - which are # all recorded within the jobStore and do...
https://github.com/DataBiosphere/toil/issues/423
WARNING:toil.leader:732fd38e_d585_4405_8d6b_c37a982f1ba5: ---TOIL WORKER OUTPUT LOG--- WARNING:toil.leader:732fd38e_d585_4405_8d6b_c37a982f1ba5: Next available file descriptor: 5 WARNING:toil.leader:732fd38e_d585_4405_8d6b_c37a982f1ba5: DEBUG:__main__:Next available file descriptor: 5 WARNING:toil.leader:732fd38e...
AttributeError
def __init__( self, jobStore, jobWrapper, localTempDir, inputBlockFn, jobStoreFileIDToCacheLocation, terminateEvent, ): """ This constructor should not be called by the user, FileStore instances are only provided as arguments to the run function. """ self.jobStore = j...
def __init__( self, jobStore, jobWrapper, localTempDir, inputBlockFn, jobStoreFileIDToCacheLocation, terminateEvent, ): """ This constructor should not be called by the user, FileStore instances are only provided as arguments to the run function. """ self.jobStore = j...
https://github.com/DataBiosphere/toil/issues/484
[centos@arjun-fake-podk toil_tests]$ python module_tests.py No handlers could be found for logger "toil.resource" INFO:toil.lib.bioio:Logging set at level: DEBUG INFO:toil.lib.bioio:Logging to file: /data1/star_log INFO:toil.common:Using the single machine batch system INFO:toil.jobStores.fileJobStore:Jobstore director...
RuntimeError
def writeGlobalFile(self, localFileName, cleanup=False): """ Takes a file (as a path) and uploads it to to the global file store, returns an ID that can be used to retrieve the file. If cleanup is True then the global file will be deleted once the job and all its successors have completed running. ...
def writeGlobalFile(self, localFileName, cleanup=False): """ Takes a file (as a path) and uploads it to to the global file store, returns an ID that can be used to retrieve the file. If cleanup is True then the global file will be deleted once the job and all its successors have completed running. ...
https://github.com/DataBiosphere/toil/issues/484
[centos@arjun-fake-podk toil_tests]$ python module_tests.py No handlers could be found for logger "toil.resource" INFO:toil.lib.bioio:Logging set at level: DEBUG INFO:toil.lib.bioio:Logging to file: /data1/star_log INFO:toil.common:Using the single machine batch system INFO:toil.jobStores.fileJobStore:Jobstore director...
RuntimeError
def readGlobalFile(self, fileStoreID, userPath=None, cache=True): """ Returns an absolute path to a local, temporary copy of the file keyed by fileStoreID. :param userPath: a path to the name of file to which the global file will be copied or hard-linked (see below). :param cache: a boolean to...
def readGlobalFile(self, fileStoreID, userPath=None): """ Returns an absolute path to a local, temporary copy of the file keyed by fileStoreID. *The returned file will be read only (have permissions 444).* :param userPath: a path to the name of file to which the global file will be copied or h...
https://github.com/DataBiosphere/toil/issues/484
[centos@arjun-fake-podk toil_tests]$ python module_tests.py No handlers could be found for logger "toil.resource" INFO:toil.lib.bioio:Logging set at level: DEBUG INFO:toil.lib.bioio:Logging to file: /data1/star_log INFO:toil.common:Using the single machine batch system INFO:toil.jobStores.fileJobStore:Jobstore director...
RuntimeError
def _updateJobWhenDone(self): """ Asynchronously update the status of the job on the disk, first waiting until the writing threads have finished and the inputBlockFn has stopped blocking. """ def asyncUpdate(): try: # Wait till all file writes have completed for ...
def _updateJobWhenDone(self): """ Asynchronously update the status of the job on the disk, first waiting until the writing threads have finished and the inputBlockFn has stopped blocking. """ def asyncUpdate(): try: # Wait till all file writes have completed for ...
https://github.com/DataBiosphere/toil/issues/484
[centos@arjun-fake-podk toil_tests]$ python module_tests.py No handlers could be found for logger "toil.resource" INFO:toil.lib.bioio:Logging set at level: DEBUG INFO:toil.lib.bioio:Logging to file: /data1/star_log INFO:toil.common:Using the single machine batch system INFO:toil.jobStores.fileJobStore:Jobstore director...
RuntimeError
def asyncUpdate(): try: # Wait till all file writes have completed for i in xrange(len(self.workers)): self.queue.put(None) for thread in self.workers: thread.join() # Wait till input block-fn returns - in the event of an exception # this will eventu...
def asyncUpdate(): try: # Wait till all file writes have completed for i in xrange(len(self.workers)): self.queue.put(None) for thread in self.workers: thread.join() # Wait till input block-fn returns - in the event of an exception # this will eventu...
https://github.com/DataBiosphere/toil/issues/484
[centos@arjun-fake-podk toil_tests]$ python module_tests.py No handlers could be found for logger "toil.resource" INFO:toil.lib.bioio:Logging set at level: DEBUG INFO:toil.lib.bioio:Logging to file: /data1/star_log INFO:toil.common:Using the single machine batch system INFO:toil.jobStores.fileJobStore:Jobstore director...
RuntimeError
def _cleanLocalTempDir(self, cacheSize): """ At the end of the job, remove all localTempDir files except those whose value is in jobStoreFileIDToCacheLocation. :param cacheSize: the total number of bytes of files allowed in the cache. """ # Remove files so that the total cached files are smalle...
def _cleanLocalTempDir(self, cacheSize): """ At the end of the job, remove all localTempDir files except those whose value is in jobStoreFileIDToCacheLocation. The param cacheSize is the total number of bytes of files allowed in the cache. """ # Remove files so that the total cached files are s...
https://github.com/DataBiosphere/toil/issues/484
[centos@arjun-fake-podk toil_tests]$ python module_tests.py No handlers could be found for logger "toil.resource" INFO:toil.lib.bioio:Logging set at level: DEBUG INFO:toil.lib.bioio:Logging to file: /data1/star_log INFO:toil.common:Using the single machine batch system INFO:toil.jobStores.fileJobStore:Jobstore director...
RuntimeError
def clean(self, rootJobWrapper): """ Function to cleanup the state of a jobStore after a restart. Fixes jobs that might have been partially updated. Resets the try counts. Removes jobs that are not successors of the rootJobWrapper. """ # Iterate from the root jobWrapper and collate all jobs ...
def clean(self, rootJobWrapper): """ Function to cleanup the state of a jobStore after a restart. Fixes jobs that might have been partially updated. Resets the try counts. Removes jobs that are not successors of the rootJobWrapper. """ # Iterate from the root jobWrapper and collate all jobs ...
https://github.com/DataBiosphere/toil/issues/484
[centos@arjun-fake-podk toil_tests]$ python module_tests.py No handlers could be found for logger "toil.resource" INFO:toil.lib.bioio:Logging set at level: DEBUG INFO:toil.lib.bioio:Logging to file: /data1/star_log INFO:toil.common:Using the single machine batch system INFO:toil.jobStores.fileJobStore:Jobstore director...
RuntimeError
def getIssuedBatchJobIDs(self): """ A list of jobs (as jobIDs) currently issued (may be running, or maybe just waiting). """ # TODO: Ensure jobList holds jobs that have been "launched" from Mesos jobList = set() for queue in self.jobQueueList.values(): for item in queue: jobL...
def getIssuedBatchJobIDs(self): """ A list of jobs (as jobIDs) currently issued (may be running, or maybe just waiting). """ # TODO: Ensure jobList holds jobs that have been "launched" from Mesos jobList = [] for k, queue in self.jobQueueList.iteritems(): for item in queue: j...
https://github.com/DataBiosphere/toil/issues/433
Failed to call scheduler's resourceOffer Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/batchSystems/mesos/batchSystem.py", line 359, in resourceOffers self._updateStateToRunning(offer, task) File "/usr/local/lib/python2.7/dist-packages/toil/batchSystems/mesos/batchSystem.py", line...
RuntimeError
def getRunningBatchJobIDs(self): """ Gets a map of jobs (as jobIDs) currently running (not just waiting) and a how long they have been running for (in seconds). """ currentTime = dict() for jobID, data in self.runningJobMap.items(): currentTime[jobID] = time.time() - data.startTime r...
def getRunningBatchJobIDs(self): """ Gets a map of jobs (as jobIDs) currently running (not just waiting) and a how long they have been running for (in seconds). """ currentTime = dict() for jobID, data in self.runningJobMap.iteritems(): currentTime[jobID] = time.time() - data.startTime ...
https://github.com/DataBiosphere/toil/issues/433
Failed to call scheduler's resourceOffer Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/batchSystems/mesos/batchSystem.py", line 359, in resourceOffers self._updateStateToRunning(offer, task) File "/usr/local/lib/python2.7/dist-packages/toil/batchSystems/mesos/batchSystem.py", line...
RuntimeError
def _sortJobsByResourceReq(self): job_types = self.jobQueueList.keys() # sorts from largest to smallest core usage # TODO: add a size() method to ResourceSummary and use it as the key. Ask me why. job_types.sort(key=lambda resourceRequirement: ResourceRequirement.cores) job_types.reverse() retur...
def _sortJobsByResourceReq(self): job_types = list(self.jobQueueList.keys()) # sorts from largest to smallest core usage # TODO: add a size() method to ResourceSummary and use it as the key. Ask me why. job_types.sort(key=lambda resourceRequirement: ResourceRequirement.cores) job_types.reverse() ...
https://github.com/DataBiosphere/toil/issues/433
Failed to call scheduler's resourceOffer Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/batchSystems/mesos/batchSystem.py", line 359, in resourceOffers self._updateStateToRunning(offer, task) File "/usr/local/lib/python2.7/dist-packages/toil/batchSystems/mesos/batchSystem.py", line...
RuntimeError
def _deleteByJobID( self, jobID, ): # FIXME: not efficient, I'm sure. for jobType in self.jobQueueList.values(): for job in jobType: if jobID == job.jobID: jobType.remove(job)
def _deleteByJobID( self, jobID, ): # FIXME: not efficient, I'm sure. for key, jobType in self.jobQueueList.iteritems(): for job in jobType: if jobID == job.jobID: jobType.remove(job)
https://github.com/DataBiosphere/toil/issues/433
Failed to call scheduler's resourceOffer Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/batchSystems/mesos/batchSystem.py", line 359, in resourceOffers self._updateStateToRunning(offer, task) File "/usr/local/lib/python2.7/dist-packages/toil/batchSystems/mesos/batchSystem.py", line...
RuntimeError
def __reconcile(self, driver): """ Queries the master about a list of running tasks. If the master has no knowledge of them, their state will be updated to LOST. """ # FIXME: we need additional reconciliation. What about the tasks the master knows about but haven't updated? now = time.time() ...
def __reconcile(self, driver): """ Queries the master about a list of running tasks. If the master has no knowledge of them, their state will be updated to LOST. """ # FIXME: we need additional reconciliation. What about the tasks the master knows about but haven't updated? now = time.time() ...
https://github.com/DataBiosphere/toil/issues/433
Failed to call scheduler's resourceOffer Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/toil/batchSystems/mesos/batchSystem.py", line 359, in resourceOffers self._updateStateToRunning(offer, task) File "/usr/local/lib/python2.7/dist-packages/toil/batchSystems/mesos/batchSystem.py", line...
RuntimeError
def _data_path( path=None, force_update=False, update_path=True, download=True, name=None, check_version=False, return_version=False, archive_name=None, accept=False, ): """Aux function.""" key = { "fake": "MNE_DATASETS_FAKE_PATH", "misc": "MNE_DATASETS_MISC_P...
def _data_path( path=None, force_update=False, update_path=True, download=True, name=None, check_version=False, return_version=False, archive_name=None, accept=False, ): """Aux function.""" key = { "fake": "MNE_DATASETS_FAKE_PATH", "misc": "MNE_DATASETS_MISC_P...
https://github.com/mne-tools/mne-python/issues/8864
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-17-1519c0d84577> in <module> ----> 1 raw = mne.io.read_epochs_eeglab(input_fname = data_path + '/'+ subject_name + '_play_merged.set') ~/.pyenv/versions...
ValueError
def _check_load_mat(fname, uint16_codec): """Check if the mat struct contains 'EEG'.""" from ...externals.pymatreader import read_mat eeg = read_mat(fname, uint16_codec=uint16_codec) if "ALLEEG" in eeg: raise NotImplementedError( "Loading an ALLEEG array is not supported. Please con...
def _check_load_mat(fname, uint16_codec): """Check if the mat struct contains 'EEG'.""" from ...externals.pymatreader import read_mat eeg = read_mat(fname, uint16_codec=uint16_codec) if "ALLEEG" in eeg: raise NotImplementedError( "Loading an ALLEEG array is not supported. Please con...
https://github.com/mne-tools/mne-python/issues/8864
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-17-1519c0d84577> in <module> ----> 1 raw = mne.io.read_epochs_eeglab(input_fname = data_path + '/'+ subject_name + '_play_merged.set') ~/.pyenv/versions...
ValueError
def _get_and_verify_data_sizes(data, sfreq, n_signals=None, n_times=None, times=None): """Get and/or verify the data sizes and time scales.""" if not isinstance(data, (list, tuple)): raise ValueError("data has to be a list or tuple") n_signals_tot = 0 for this_data in data: this_n_signal...
def _get_and_verify_data_sizes(data, n_signals=None, n_times=None, times=None): """Get and/or verify the data sizes and time scales.""" if not isinstance(data, (list, tuple)): raise ValueError("data has to be a list or tuple") n_signals_tot = 0 for this_data in data: this_n_signals, this...
https://github.com/mne-tools/mne-python/issues/8824
Connectivity computation... Traceback (most recent call last): File "/home/ap/PycharmProjects/eeg_processing/conn_example.py", line 30, in <module> faverage=True, tmin=tmin, tmax=tmax, mt_adaptive=False, n_jobs=1) File "<decorator-gen-387>", line 21, in spectral_connectivity File "/home/ap/miniconda3/envs/MNE/lib/pytho...
ValueError
def spectral_connectivity( data, method="coh", indices=None, sfreq=2 * np.pi, mode="multitaper", fmin=None, fmax=np.inf, fskip=0, faverage=False, tmin=None, tmax=None, mt_bandwidth=None, mt_adaptive=False, mt_low_bias=True, cwt_freqs=None, cwt_n_cycles=7, ...
def spectral_connectivity( data, method="coh", indices=None, sfreq=2 * np.pi, mode="multitaper", fmin=None, fmax=np.inf, fskip=0, faverage=False, tmin=None, tmax=None, mt_bandwidth=None, mt_adaptive=False, mt_low_bias=True, cwt_freqs=None, cwt_n_cycles=7, ...
https://github.com/mne-tools/mne-python/issues/8824
Connectivity computation... Traceback (most recent call last): File "/home/ap/PycharmProjects/eeg_processing/conn_example.py", line 30, in <module> faverage=True, tmin=tmin, tmax=tmax, mt_adaptive=False, n_jobs=1) File "<decorator-gen-387>", line 21, in spectral_connectivity File "/home/ap/miniconda3/envs/MNE/lib/pytho...
ValueError
def _prepare_connectivity( epoch_block, times_in, tmin, tmax, fmin, fmax, sfreq, indices, mode, fskip, n_bands, cwt_freqs, faverage, ): """Check and precompute dimensions of results data.""" rfftfreq = _import_fft("rfftfreq") first_epoch = epoch_block[0] ...
def _prepare_connectivity( epoch_block, tmin, tmax, fmin, fmax, sfreq, indices, mode, fskip, n_bands, cwt_freqs, faverage, ): """Check and precompute dimensions of results data.""" rfftfreq = _import_fft("rfftfreq") first_epoch = epoch_block[0] # get the ...
https://github.com/mne-tools/mne-python/issues/8824
Connectivity computation... Traceback (most recent call last): File "/home/ap/PycharmProjects/eeg_processing/conn_example.py", line 30, in <module> faverage=True, tmin=tmin, tmax=tmax, mt_adaptive=False, n_jobs=1) File "<decorator-gen-387>", line 21, in spectral_connectivity File "/home/ap/miniconda3/envs/MNE/lib/pytho...
ValueError