Skip to content

Instantly share code, notes, and snippets.

@thokra
Created December 13, 2010 15:29
Show Gist options
  • Save thokra/739096 to your computer and use it in GitHub Desktop.
Save thokra/739096 to your computer and use it in GitHub Desktop.
class UpdateFeeds < DJ::Worker
re_enqueue
def run_at
10.second.from_now
end
def perform
puts "HELLO!!"
end
end
worker = UpdateFeeds.new
worker.enqueue!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment