添加corpid和userid

This commit is contained in:
AKW 2023-12-22 17:35:17 +08:00
parent 97979411cf
commit 6f0c73829b
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import json
import logging
import os
from redis import Redis
from django_redis import get_redis_connection
from django.conf import settings
from threading import Thread
@ -13,7 +13,7 @@ logger = logging.getLogger('apps')
class JQRMSGPubSubUtils:
rc = Redis(host=settings.REDIS_HOST, port=settings.REDIS_PORT, db=0)
rc = get_redis_connection()
msg_list = []
BATCH_SIZE = 100