diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-01-23 15:58:48 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-01-23 15:58:48 -0500 |
commit | 19e4d1ba808cbbe95568271a5b0075b8422e4fb6 (patch) | |
tree | 197d55cf717319c5ffe565f9aa8a639b962fc490 /test/async_test.py | |
parent | ce0eaca23fb42f77f67408e509bbe091f4c27e56 (diff) | |
download | func-19e4d1ba808cbbe95568271a5b0075b8422e4fb6.tar.gz func-19e4d1ba808cbbe95568271a5b0075b8422e4fb6.tar.xz func-19e4d1ba808cbbe95568271a5b0075b8422e4fb6.zip |
Double-barrel asynchronous calls. Async can now occur on both sides simultaneously and still appears as if there is only one
"global" job id to the API caller, the minion job id's are managed in the background, complete with partial result response
as things come in which should be very nice for ajaxy implication. job_status API does still need to be modified to list
active jobs as well as to store the job name.
Diffstat (limited to 'test/async_test.py')
-rw-r--r-- | test/async_test.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/async_test.py b/test/async_test.py index 43904c4..cec512b 100644 --- a/test/async_test.py +++ b/test/async_test.py @@ -23,6 +23,9 @@ def __tester(async): sys.exit(1) if code == jobthing.JOB_ID_RUNNING: print "task is still running, %s elapsed ..." % delta + if code == jobthing.JOB_ID_PARTIAL: + print "task reports partial status, %s elapsed, results = %s" % (delta, results) + elif code == jobthing.JOB_ID_FINISHED: print "task complete, %s elapsed, results = %s" % (delta, results) sys.exit(0) |