app/controllers/extface/jobs_controller.rb in extface-0.1.3 vs app/controllers/extface/jobs_controller.rb in extface-0.1.4

- old
+ new

@@ -7,9 +7,11 @@ def show response.headers['Content-Type'] = 'text/event-stream' @job = Job.find(params[:id]) if @job.completed? response.stream.write("data: Job #{@job.id} completed!\n\n") + elsif @job.failed? + response.stream.write("data: Job #{@job.id} failed!\n\n") else #redis = Redis.new response.stream.write("data: Job #{@job.id} waiting for device connection...\n\n") Extface.redis_block do |r| r.subscribe(@job.id) do |on|