Guest User

Untitled

a guest
May 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. task :update => :environment do
  2. start = Time.now
  3. SuperFunction::run!
  4. diff = 60 - (Time.now - start).to_i
  5. sleep diff unless diff <= 0
  6. Rake::Task["update"].delay.execute
  7. end
Add Comment
Please, Sign In to add comment