Exemplo n.º 1
0
 def _hashTestFile(self, url):
     from toil.jobStores.azureJobStore import AzureJobStore
     url = urlparse.urlparse(url)
     blobService, containerName, blobName = AzureJobStore._extractBlobInfoFromUrl(
         url)
     content = blobService.get_blob_to_bytes(containerName, blobName)
     return hashlib.md5(content).hexdigest()
Exemplo n.º 2
0
 def _hashUrl(url):
     from toil.jobStores.azureJobStore import AzureJobStore
     blobService, containerName, blobName = AzureJobStore._extractBlobInfoFromUrl(urlparse.urlparse(url))
     content = blobService.get_blob_to_bytes(containerName, blobName)
     return hashlib.md5(content).hexdigest()
Exemplo n.º 3
0
 def _cleanUpExternalStore(url):
     from toil.jobStores.azureJobStore import AzureJobStore
     blobService, containerName, _ = AzureJobStore._extractBlobInfoFromUrl(urlparse.urlparse(url))
     blobService.delete_container(containerName)
Exemplo n.º 4
0
 def _cleanUpExternalStore(url):
     from toil.jobStores.azureJobStore import AzureJobStore
     blobService, containerName, _ = AzureJobStore._extractBlobInfoFromUrl(
         urlparse.urlparse(url))
     blobService.delete_container(containerName)