swh.lister.github: Refactor to use swh.storage instead of sqlalchemy

This commit is contained in:
Nicolas Dandrimont 2016-03-09 19:03:35 +01:00
parent f13764ba36
commit 533f6fa1a3
20 changed files with 600 additions and 694 deletions

View file

@ -1,18 +0,0 @@
#!/bin/bash
# Copyright (C) 2015 Stefano Zacchiroli <zack@upsilon.cc>
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
# intended usage: watch -n 60 bin/status
DBNAME="github"
DBCONN="-p 5433"
psql="psql $DBCONN --no-psqlrc"
ps auxw | grep bin/batch
echo "SELECT COUNT(*), MAX(id) FROM repos" | $psql "$DBNAME"
echo "\\l+ ${DBNAME}" | $psql "$DBNAME"
du -sh cache/
zgrep -i --color=auto "'X-RateLimit-Remaining'" cache/$(ls -t cache/ | head -n 4 | tail -n 1)