blob: 08043c6ba4e5c78760887a6765ab5e5a127925db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#for testing the error handling
module OpenTox
class Application < Service
post '/test/wait_for_error_in_task/?' do
task = OpenTox::Task.run("wait_for_error_in_task",@uri) do |task|
sleep 1
uri = OpenTox::Dataset.new(File.join($dataset[:uri],'test/error_in_task')).post
end
response['Content-Type'] = 'text/uri-list'
halt 202,task.uri.to_s+"\n"
end
end
end
|