def init(self): self.set_logging() self.sqs = aws.get_sqs_resource() self.manifest_queue = aws.get_queue_by_name(self.sqs, settings.MANIFEST_QUEUE) self.starsky_ingest_queue = aws.get_queue_by_name(self.sqs, settings.INGEST_QUEUE) self.error_queue = aws.get_queue_by_name(self.sqs, settings.ERROR_QUEUE)
def init(self): self.set_logging() self.sqs = aws.get_sqs_resource() self.s3 = aws.get_s3_resource() self.ingest_queue = aws.get_queue_by_name(self.sqs, settings.INGEST_QUEUE) self.error_queue = aws.get_queue_by_name(self.sqs, settings.ERROR_QUEUE) self.text_queue = aws.get_queue_by_name(self.sqs, settings.TEXT_QUEUE) self.iris = iris_client.IrisClient()
def get_error_queue(): return aws.get_queue_by_name(sqs, settings.ERROR_QUEUE)
def get_input_queue(): return aws.get_queue_by_name(sqs, settings.INPUT_QUEUE)
def get_response_queue(): return aws.get_queue_by_name(sqs, settings.RESPONSE_QUEUE)
def get_notification_queue(): return aws.get_queue_by_name(sqs, settings.NOTIFICATION_QUEUE)