The clockwork is not included in the Heroku console

I use the Clockwork camcorder for a number of rake tasks. Everything looks good, but it seems that the commands are puts

not showing up in the logs and was just wondering if anyone has any idea why?

require File.expand_path('../../config/boot',        __FILE__)
require File.expand_path('../../config/environment', __FILE__)
require 'clockwork'

include Clockwork

module Clockwork
    configure do |config|
        config[:max_threads] = 30
        config[:thread] = true
    end

    error_handler do |error|
        Airbrake.notify_or_ignore(error)
    end

    handler do |job|
        Rails.logger.info "Enqueuing job: '#{job}'"
    end

    every(60.seconds, 'Test Job') {
        `rake testing_clockwork`
        }

end



desc 'Testing Clockwork'
task :testing_clockwork => :environment do

    puts "Testing Clockwork"

    Rails.logger.info("Testing Clockwork")


end

      

+3


source to share





All Articles