diff options
Diffstat (limited to 'lib/algorithm.rb')
-rw-r--r-- | lib/algorithm.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/algorithm.rb b/lib/algorithm.rb index 0c633f2..455e9ad 100644 --- a/lib/algorithm.rb +++ b/lib/algorithm.rb @@ -7,9 +7,9 @@ module OpenTox # @param [optional,Hash] params Algorithm parameters # @param [optional,OpenTox::Task] waiting_task (can be a OpenTox::Subtask as well), progress is updated accordingly # @return [String] URI of new resource (dataset, model, ...) - def run params=nil - post params + def run params=nil, wait=true + uri = RestClientWrapper.post @uri, params, { :content_type => "text/uri-list", :subjectid => @subjectid} + wait_for_task uri if wait end - end end |