diff options
author | Martin Gütlein <martin.guetlein@gmail.com> | 2010-04-23 14:45:48 +0200 |
---|---|---|
committer | Martin Gütlein <martin.guetlein@gmail.com> | 2010-04-23 14:45:48 +0200 |
commit | 08232976c35511086fe6787c6c8c098c63ef0818 (patch) | |
tree | a153cac4b42206d6e4ace0bb3a14f90cfdcc79bb /lib/task.rb | |
parent | ad974c419a2efe4c0ceaa1f3e2346906b5783e52 (diff) |
minor fixes
Diffstat (limited to 'lib/task.rb')
-rw-r--r-- | lib/task.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/task.rb b/lib/task.rb index dee8a86..99d8f13 100644 --- a/lib/task.rb +++ b/lib/task.rb @@ -14,7 +14,7 @@ module OpenTox public def self.create - task_uri = RestClientWrapper.post(@@config[:services]["opentox-task"], nil, nil, false).to_s + task_uri = RestClientWrapper.post(@@config[:services]["opentox-task"], {}, nil, false).to_s Task.find(task_uri.chomp) end @@ -116,7 +116,6 @@ module OpenTox begin result = catch(:halt) do yield task - LOGGER.debug "Task #{task.uri} done #{Time.now}" end if result && result.is_a?(Array) && result.size==2 && result[0]>202 # halted while executing task @@ -124,6 +123,7 @@ module OpenTox task.error(result[1]) throw :halt,result end + LOGGER.debug "Task #{task.uri} done #{Time.now} -> "+result.to_s task.completed(result) rescue => ex #raise ex |