delayed_job not logging

后端 未结 4 1241
轻奢々
轻奢々 2020-12-18 02:07

I cannot log messages from my delayed_job process. Here is the job that is being run.

class MyJob
  def initialize(blahblah)
    @blahblah = blahblah
    @lo         


        
4条回答
  •  旧巷少年郎
    2020-12-18 02:23

    This is working just fine for me in Rails 3.2:

    class FiveMinuteAggregateJob < Struct.new(:link, :timestamp)
      def perform
        Rails.logger.info 'yup.'
      end
    end
    

提交回复
热议问题