本文整理汇总了Python中cache.CacheHelper.miss_queues方法的典型用法代码示例。如果您正苦于以下问题:Python CacheHelper.miss_queues方法的具体用法?Python CacheHelper.miss_queues怎么用?Python CacheHelper.miss_queues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cache.CacheHelper
的用法示例。
在下文中一共展示了CacheHelper.miss_queues方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: queues
# 需要导入模块: from cache import CacheHelper [as 别名]
# 或者: from cache.CacheHelper import miss_queues [as 别名]
# make sure logdir exists
os.system("mkdir -p "+cfg.LOGDIR)
#make sure celeybeat-schedule.db file is deleted
os.system("rm -rf celerybeat-schedule.db")
# kill old background processes
kill_procs=["sdkserver"]
for proc in kill_procs:
os.system("ps aux | grep %s | awk '{print $2}' | xargs kill" % proc)
# delete queues (note using --purge will remove cc_queues)
queues = CacheHelper.task_queues() + CacheHelper.miss_queues()
# when --purge set delete cc_queue's as well
# as seriesly db
if "--purge" in sys.argv:
queues = set(CacheHelper.queues())
# cleaning up seriesly database (fast and slow created by cbtop)
if cfg.SERIESLY_IP != '':
from seriesly import Seriesly
seriesly = Seriesly(cfg.SERIESLY_IP, 3133)
dbs = seriesly.list_dbs()
for db in dbs:
seriesly.drop_db(db)