module ActiveJob::Callbacks::ClassMethods
def before_enqueue(*filters, &blk)
end
end
Video.find(video_id).process
def perform(video_id)
end
$statsd.increment "enqueue-video-job.try"
before_enqueue do |job|
queue_as :default
class VideoProcessJob < ActiveJob::Base
job is enqueued.
Defines a callback that will get called right before the
def before_enqueue(*filters, &blk) set_callback(:enqueue, :before, *filters, &blk) end