Skip to content

Commit 354eb40

Browse files
committed
This seems handy.
1 parent f670dd3 commit 354eb40

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

contrib/disk-queue-info.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env python
2+
3+
import sys
4+
from hubblestack.hec.dq import DiskQueue
5+
6+
def examine(dirname):
7+
dq = DiskQueue(dirname)
8+
return dq.cn, dq.sz
9+
10+
if __name__ == '__main__':
11+
for d in sys.argv[1:]:
12+
cn, sz = examine(d)
13+
print("QUEUE={} ITEMS={} SIZE={}".format(d, cn, sz))

0 commit comments

Comments
 (0)