1Q94

导航

 

2020年12月7日

摘要: 当某个任务启动时,程序会将该任务相关的进程保存在一个字典中,如果某个进程成功执行完,就将该字典中相关任务删除; 1. 首先定义共享变量和队列: from multiprocessing import Manager,Queue pid = Manager().dict()q = Queue() 2. 阅读全文
posted @ 2020-12-07 19:01 1Q94 阅读(74) 评论(0) 推荐(0) 编辑
 
摘要: curl http://localhost:9200/_cat/indices | awk '{print $3}' | egrep -v 'xx|xx|xx' | xargs -n 1 -I {} curl -XDELETE http://localhost:9200/{} 阅读全文
posted @ 2020-12-07 18:04 1Q94 阅读(453) 评论(0) 推荐(0) 编辑