Commit e6ca0a597cdec85ae4c5017952a07b5cadb4b723

Authored by Luke Baker
1 parent 52344de2

give csv jobs better priority than default

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
app/controllers/questions_controller.rb
... ... @@ -73,8 +73,9 @@ class QuestionsController < InheritedResources::Base
73 73  
74 74 # puts "redis key is::::: #{redis_key}"
75 75  
76   - @question.send_later :export, type,
77   - :response_type => response_type, :redis_key => redis_key
  76 + @question.delay(:priority => 15).export(type,
  77 + :response_type => response_type,
  78 + :redis_key => redis_key)
78 79  
79 80  
80 81 render :text => "Ok! Please wait for the response (as specified by your response_type)"
... ...