Skip to content

Commit

Permalink
more info
Browse files Browse the repository at this point in the history
  • Loading branch information
gluk64 committed May 15, 2019
1 parent 8cd7d87 commit 9c103b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/do-clusters
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
CLUSTERS=`do-curl -X GET "https://api.digitalocean.com/v2/kubernetes/clusters"`
echo $CLUSTERS | jq '.kubernetes_clusters | map({id: .id, name: .name, region: .region, node_pools: .node_pools}) | .[]'

for KUBECONFIG in `ls etc/kube/kubeconfig-*`; do
for KUBECONFIG in `ls etc/kube/kubeconfig*`; do
echo $KUBECONFIG
kubectl get pods
echo done
Expand Down
12 changes: 10 additions & 2 deletions src/storage/sql/active_provers.pgsql
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
SELECT * FROM prover_runs pr
with pr as (
SELECT
*,
EXTRACT(seconds FROM (updated_at - created_at)) as since
FROM prover_runs pr
WHERE NOT EXISTS (SELECT * FROM proofs p WHERE p.block_number = pr.block_number)
ORDER BY id desc;
ORDER BY id desc
)
select *
from pr
order by block_number asc;

0 comments on commit 9c103b6

Please sign in to comment.