1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-17 19:20:19 +01:00

remove kubernetes dependency (#117)

This commit is contained in:
Gal Leibovich
2018-11-18 18:10:22 +02:00
committed by Gal Novik
parent 430e286c56
commit d4d06aaea6
8 changed files with 28 additions and 17 deletions

View File

@@ -20,7 +20,6 @@ import pickle
import redis
import numpy as np
from rl_coach.memories.backend.memory_impl import get_memory_backend
class SharedRunningStatsSubscribe(threading.Thread):
@@ -49,6 +48,7 @@ class SharedRunningStats(ABC):
self.pubsub = None
if pubsub_params:
self.channel = "channel-srs-{}".format(self.name)
from rl_coach.memories.backend.memory_impl import get_memory_backend
self.pubsub = get_memory_backend(pubsub_params)
subscribe_thread = SharedRunningStatsSubscribe(self)
subscribe_thread.daemon = True