Skip to content

Instantly share code, notes, and snippets.

@mattsrobot
Created June 7, 2016 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattsrobot/e8742b39e7b3099b3fc9f9432a20a231 to your computer and use it in GitHub Desktop.
Save mattsrobot/e8742b39e7b3099b3fc9f9432a20a231 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'clockwork'
require 'sidekiq'
require 'open-uri'
include Clockwork
class MinuteWorker
include Sidekiq::Worker
def perform
open("http://0.0.0.0:8000")
end
end
module Clockwork
every 1.minute, 'Fetch Notifications' do
MinuteWorker.perform_async
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment