No Description

cmd_bak.py 863B

    # -*- coding: utf-8 -*- import logging from django.db import transaction from django_six import CompatibilityBaseCommand, close_old_connections from utils.redis.connect import r logger = logging.getLogger('console') class Command(CompatibilityBaseCommand): def handle(self, *args, **options): logger.info('Thermometer bak cmd is dealing') while True: # r.rpush('TEMPLET_CMD_KEY', '') # kv = r.blpop('TEMPLET_CMD_KEY', 60) # k, v = (kv[0], kv[1]) if kv else (None, None) # # r.rpushjson('TEMPLET_CMD_KEY', {}) k, v = r.blpopjson('TEMPLET_CMD_KEY', 60) if not v: continue logger.info(v) close_old_connections() with transaction.atomic(): pass close_old_connections()
lensman - Gogs: Go Git Service

Nenhuma Descrição

chengzhenyu: 72d519032b replace some png res 10 anos atrás
..
libs 30b119f214 first commit 10 anos atrás
src 72d519032b replace some png res 10 anos atrás
.gitignore 30b119f214 first commit 10 anos atrás
build.gradle 57a51b861d add retrofit http part 10 anos atrás
proguard-rules.pro 30b119f214 first commit 10 anos atrás