Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ros/lib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def build_endpoint_url(ep):
REDIS_URL = f"{REDIS_SCHEME}{REDIS_AUTH}{REDIS_HOST}:{REDIS_PORT}"
GROUP_ID = os.getenv('GROUP_ID', 'resource-optimization')
GROUP_ID_SUGGESTIONS_ENGINE = os.getenv('GROUP_ID_SUGGESTIONS_ENGINE', 'suggestions-engine-group')
GROUP_ID_SYSTEM_ERASER = os.getenv('GROUP_ID_SYSTEM_ERASER', 'system-eraser-group')
# The default value for PATH_PREFIX is same as under clowdapp file
PATH_PREFIX = os.getenv("PATH_PREFIX", "/api")
APP_NAME = os.getenv("APP_NAME", "ros")
Expand Down
4 changes: 2 additions & 2 deletions ros/processor/system_eraser.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
get_logger,
METRICS_PORT,
INVENTORY_EVENTS_TOPIC,
GROUP_ID_SUGGESTIONS_ENGINE,
GROUP_ID_SYSTEM_ERASER,
POLL_TIMEOUT_SECS
)
from ros.lib import consume
Expand All @@ -21,7 +21,7 @@

class SystemEraser:
def __init__(self):
self.consumer = consume.init_consumer(INVENTORY_EVENTS_TOPIC, GROUP_ID_SUGGESTIONS_ENGINE)
self.consumer = consume.init_consumer(INVENTORY_EVENTS_TOPIC, GROUP_ID_SYSTEM_ERASER)
self.service = 'SYSTEM_ERASER'
self.event = 'Delete event'
self.running = True
Expand Down
Loading