Skip to content
Snippets Groups Projects
Commit 2c2282d1 authored by Leonardo Christino's avatar Leonardo Christino
Browse files

fix: fix link to files

parent 8a05eb35
No related branches found
No related tags found
No related merge requests found
......@@ -5,12 +5,11 @@
#!/usr/bin/env python
import traceback
from MLRepositoryInterface import MLServerInterface
from machine_learning_common.MLRepositoryInterface import MLServerInterface
import pika
import json
import redis
import os
from dotenv import load_dotenv
##
......@@ -22,8 +21,6 @@ def void(DikkeDraak):
pass
load_dotenv("../.env.dev")
print(os.getcwd())
# We often compare against this specific string, so we clearly define it to prevent any typos
# Python has no constants so we simply give it a very obvious name that implies it is not supposed to be changed
CONST_MLEXCHANGE = "ml-direct-exchange"
......@@ -39,9 +36,8 @@ credentials = pika.PlainCredentials(rabbit_username, rabbit_password)
# Set up Redis
# THESE PARAMETERS ARE DUMMY PARAMS, WE SHOULD CONNECT TO THE REDIS MICROSERVICE PARAMS
redis_address = os.getenv("REDIS_ADDRESS", default="redis")
redis_address, redis_port = os.getenv("REDIS_ADDRESS", default="redis:6379").split(":")
redis_password = os.getenv("REDIS_PASSWORD")
redis_port = os.getenv("REDIS_PORT", default=6379)
print("redis address:", redis_address, redis_port)
print("rabbit address:", rabbit_host, rabbit_port)
r = redis.Redis(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment