daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest May 27th, 2018 54 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. module OfflineTasks
  2.   def self.do_task(task)
  3.     print task.inspect, "\n"
  4.    
  5.     case task[:task]
  6.     when 'validate'
  7.        SubmissionValidator.validate Submission.find(task[:submission_id])
  8.     end
  9.   end
  10.  
  11.   def self.validate_submission(submission)
  12.     #OfflineTasks.do_task :task => 'validate', :submission_id => submission.id
  13.     print "Pre: #{Time.now}\n"
  14.     STARLING.set('pushes', {:task => 'validate', :submission_id => submission.id })
  15.     print "Post: #{Time.now}\n"
  16.   end
  17. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top