Skip to content

Instantly share code, notes, and snippets.

@jelder
Created February 8, 2011 22:16
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 jelder/817394 to your computer and use it in GitHub Desktop.
Save jelder/817394 to your computer and use it in GitHub Desktop.
Low granularity Heroku Cron via Pingdom
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