diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-01-14 14:58:43 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-01-14 14:58:43 +0100 |
commit | c8ece50aeac195ecb9bf3c5f3cff2d408b19b6e6 (patch) | |
tree | d4a88503dae3ab24ffac928cef838461eca21904 | |
parent | 433b2cd242b94e2b744f5fb40b6196658b146653 (diff) |
set percentage completed
-rw-r--r-- | lazar.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -91,8 +91,8 @@ post '/:id/?' do halt 500, "Prediction of #{compound_uri} with #{@lazar.uri} failed." end elsif dataset_uri - task = OpenTox::Task.create("Predict dataset",url_for("/#{@lazar.id}", :full)) do - @lazar.predict_dataset(dataset_uri, subjectid).uri + task = OpenTox::Task.create("Predict dataset",url_for("/#{@lazar.id}", :full)) do |task| + @lazar.predict_dataset(dataset_uri, subjectid, task).uri end halt 503,task.uri+"\n" if task.status == "Cancelled" halt 202,task.uri |