def delete_upload_queue(self): """ Returns: """ UploadQueue.deleteQueue(self.nd_proj, endpoint_url=None)
def delete_upload_queue(self): """ Delete the current upload queue Returns: None """ UploadQueue.deleteQueue(self.nd_proj, endpoint_url=None)
def boss_util_fixtures(tile_bucket, sqs): job_id = 123 nd_proj = BossIngestProj("testCol", "kasthuri11", "image", 0, job_id) from ndingest.ndqueue.uploadqueue import UploadQueue UploadQueue.createQueue(nd_proj) upload_queue = UploadQueue(nd_proj) from ndingest.ndqueue.tileindexqueue import TileIndexQueue TileIndexQueue.createQueue(nd_proj) tile_index_queue = TileIndexQueue(nd_proj) def get_test_data(): return (nd_proj, upload_queue, tile_index_queue, tile_bucket) yield get_test_data UploadQueue.deleteQueue(nd_proj) TileIndexQueue.deleteQueue(nd_proj)
def deleteIngestJob(self, job_id): """Delete an ingest job based on job id""" try: ingest_job = NDIngestJob.fromId(job_id) nd_proj = NDIngestProj(ingest_job.project, ingest_job.channel, ingest_job.resolution) # delete the upload queue UploadQueue.deleteQueue( nd_proj, endpoint_url=ndingest_settings.SQS_ENDPOINT) # delete the ingest queue IngestQueue.deleteQueue( nd_proj, endpoint_url=ndingest_settings.SQS_ENDPOINT) # delete the cleanup queue CleanupQueue.deleteQueue( nd_proj, endpoint_url=ndingest_settings.SQS_ENDPOINT) ingest_job.status = INGEST_STATUS_DELETED ingest_job.save() except Exception as e: print(e) raise
def tearDownClass(cls): UploadQueue.deleteQueue(cls.nd_proj)
def teardown_class(self): """Teardown class parameters""" TileIndexDB.deleteTable(endpoint_url=settings.DYNAMO_ENDPOINT) IngestQueue.deleteQueue(nd_proj, endpoint_url=settings.SQS_ENDPOINT) UploadQueue.deleteQueue(nd_proj, endpoint_url=settings.SQS_ENDPOINT)