Update to run with Podman
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import msgpack
|
||||
from django.core.management.base import BaseCommand
|
||||
from django.conf import settings
|
||||
from redis import StrictRedis
|
||||
|
||||
from core.db.storage import db
|
||||
@@ -93,7 +94,12 @@ def process_rules(data):
|
||||
|
||||
class Command(BaseCommand):
|
||||
def handle(self, *args, **options):
|
||||
r = StrictRedis(unix_socket_path="/var/run/socks/redis.sock", db=0)
|
||||
r = StrictRedis(
|
||||
host=settings.REDIS_HOST,
|
||||
port=settings.REDIS_PORT,
|
||||
password=settings.REDIS_PASSWORD,
|
||||
db=settings.REDIS_DB
|
||||
)
|
||||
p = r.pubsub()
|
||||
p.psubscribe("messages")
|
||||
for message in p.listen():
|
||||
|
||||
Reference in New Issue
Block a user