mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 03:30:05 -05:00
Actually terminates!
This commit is contained in:
parent
a8f4e0007e
commit
57c29721eb
5
dist/client.py
vendored
5
dist/client.py
vendored
@ -137,9 +137,10 @@ def main(addrs):
|
|||||||
print 'Interrupt received, flushing'
|
print 'Interrupt received, flushing'
|
||||||
|
|
||||||
while cli.taskmap:
|
while cli.taskmap:
|
||||||
|
for k, v in cli.taskmap.items():
|
||||||
|
if not v.getters:
|
||||||
|
cli.taskmap.pop(k)
|
||||||
print 'Still waiting on %d tasks...' % len(cli.taskmap)
|
print 'Still waiting on %d tasks...' % len(cli.taskmap)
|
||||||
for i in cli.taskmap.items():
|
|
||||||
print i
|
|
||||||
gevent.sleep(3)
|
gevent.sleep(3)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user