Show More
@@ -3,6 +3,8 b'' | |||
|
3 | 3 | |
|
4 | 4 | from IPython.kernel import client |
|
5 | 5 | import time |
|
6 | import sys | |
|
7 | flush = sys.stdout.flush | |
|
6 | 8 | |
|
7 | 9 | tc = client.TaskClient() |
|
8 | 10 | mec = client.MultiEngineClient() |
@@ -16,6 +18,7 b' for i in range(6):' | |||
|
16 | 18 | time.sleep(1.0) |
|
17 | 19 | print "Queue status (vebose=False)" |
|
18 | 20 | print tc.queue_status() |
|
21 | flush() | |
|
19 | 22 | |
|
20 | 23 | for i in range(24): |
|
21 | 24 | tc.run(client.StringTask('time.sleep(1)')) |
@@ -24,12 +27,14 b' for i in range(6):' | |||
|
24 | 27 | time.sleep(1.0) |
|
25 | 28 | print "Queue status (vebose=True)" |
|
26 | 29 | print tc.queue_status(True) |
|
30 | flush() | |
|
27 | 31 | |
|
28 | 32 | for i in range(12): |
|
29 | 33 | tc.run(client.StringTask('time.sleep(2)')) |
|
30 | 34 | |
|
31 | 35 | print "Queue status (vebose=True)" |
|
32 | 36 | print tc.queue_status(True) |
|
37 | flush() | |
|
33 | 38 | |
|
34 | 39 | qs = tc.queue_status(True) |
|
35 | 40 | sched = qs['scheduled'] |
@@ -41,4 +46,5 b' for i in range(6):' | |||
|
41 | 46 | time.sleep(1.0) |
|
42 | 47 | print "Queue status (vebose=True)" |
|
43 | 48 | print tc.queue_status(True) |
|
49 | flush() | |
|
44 | 50 |
General Comments 0
You need to be logged in to leave comments.
Login now