first commit
This commit is contained in:
commit
cd1e91bb99
287 changed files with 86425 additions and 0 deletions
26
rasta_exp/utils/get_finished.py
Executable file
26
rasta_exp/utils/get_finished.py
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
|
||||
import couchdb
|
||||
import json
|
||||
import sys
|
||||
import os
|
||||
import configparser
|
||||
_config = configparser.ConfigParser()
|
||||
_config.read("settings.ini")
|
||||
_cfg = _config["Couch"]
|
||||
couch_srv = couchdb.Server(f"http://{_cfg.get('user')}:{_cfg.get('password')}@{_cfg.get('host')}:{_cfg.getint('port')}/")
|
||||
|
||||
|
||||
db_name = sys.argv[1]
|
||||
|
||||
couch_db = couch_srv[db_name]
|
||||
|
||||
|
||||
for uid in couch_db:
|
||||
(sha, task) = uid.split('_-_')
|
||||
report = couch_db[uid]
|
||||
if report and 'tool-status' in report:
|
||||
if report['tool-status'] == 'FINISHED':
|
||||
print(uid)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue