diff options
author | makkalot <makkalot@gmail.com> | 2008-08-18 15:47:00 +0300 |
---|---|---|
committer | makkalot <makkalot@gmail.com> | 2008-08-18 15:47:00 +0300 |
commit | e4038b2c414af3ebd2bc1916ddd89189feb2e02f (patch) | |
tree | b24fcbbfdc1a8a5c970812f10c4b6fc76655c27a /funcweb | |
parent | 2d7a00b1b11595bbede61d3c638f365c81e8d4a8 (diff) | |
download | func-e4038b2c414af3ebd2bc1916ddd89189feb2e02f.tar.gz func-e4038b2c414af3ebd2bc1916ddd89189feb2e02f.tar.xz func-e4038b2c414af3ebd2bc1916ddd89189feb2e02f.zip |
Remove that polling here ,it slows the process of submition :)
Diffstat (limited to 'funcweb')
-rw-r--r-- | funcweb/funcweb/controllers.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/funcweb/funcweb/controllers.py b/funcweb/funcweb/controllers.py index 4434db2..43f60e3 100644 --- a/funcweb/funcweb/controllers.py +++ b/funcweb/funcweb/controllers.py @@ -375,20 +375,6 @@ class Funcweb(object): result_id = getattr(getattr(fc_async,module),method)(*cmd_args) result = "".join(["The id for current job is :",str(result_id)," You will be notified when there is some change about that command !"]) - #that part gives a chance for short methods to finish their jobs and display them - #immediately so user will not wait for new notifications for that short thing - import time - time.sleep(4) - tmp_as_res = fc_async.job_status(result_id) - if tmp_as_res[0] == JOB_ID_FINISHED: - result = tmp_as_res[1] - - if not self.async_manager: - #cleanup tha database firstly - purge_old_jobs() - self.async_manager = AsyncResultManager() - self.async_manager.refresh_list() - except Exception,e: flash("We got some error while trying to send command for %s.%s.%s"%(module,minion,method)) return dict() |