-
-
Save mattsrobot/e8742b39e7b3099b3fc9f9432a20a231 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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