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