Created
February 8, 2011 22:16
-
-
Save jelder/817394 to your computer and use it in GitHub Desktop.
Low granularity Heroku Cron via Pingdom
This file contains hidden or 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
class PingdomController < ActionController::Base | |
def check | |
ActiveRecord::Base.connection.select_value("SELECT 1") | |
Delayed::Job.enqueue( MyUrgentTask.new ) | |
render :xml => { :status => :ok } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment