##// END OF EJS Templates
Generate package list automatically in find_packages...
Generate package list automatically in find_packages Previously, the package list was manually specified, which meant that it became out of date any time a package was added, and IPython would become uninstallable. This would not be noticed for some time by developers, who always use `setupegg.py --develop` or symlinks. This update immediately revealed that IPython.zmq.tests and IPython.extensions.tests were never included in 0.11. Other than that, there is no difference in the package list.

File last commit:

r3690:aafdf2be
r4466:1eea56b4
Show More
task2.py
50 lines | 916 B | text/x-python | PythonLexer
#!/usr/bin/env python
# encoding: utf-8
from IPython.parallel import Client
import time
import sys
flush = sys.stdout.flush
rc = Client()
v = rc.load_balanced_view()
mux = rc[:]
for i in range(24):
v.apply(time.sleep, 1)
for i in range(6):
time.sleep(1.0)
print "Queue status (vebose=False)"
print v.queue_status(verbose=False)
flush()
for i in range(24):
v.apply(time.sleep, 1)
for i in range(6):
time.sleep(1.0)
print "Queue status (vebose=True)"
print v.queue_status(verbose=True)
flush()
for i in range(12):
v.apply(time.sleep, 2)
print "Queue status (vebose=True)"
print v.queue_status(verbose=True)
flush()
# qs = v.queue_status(verbose=True)
# queued = qs['scheduled']
for msg_id in v.history[-4:]:
v.abort(msg_id)
for i in range(6):
time.sleep(1.0)
print "Queue status (vebose=True)"
print v.queue_status(verbose=True)
flush()