2016-08-06 12:41:18 -04:00
|
|
|
require_relative "../support/job_buffer"
|
2015-08-15 23:41:33 -04:00
|
|
|
|
|
|
|
class QueueAsJob < ActiveJob::Base
|
|
|
|
MY_QUEUE = :low_priority
|
|
|
|
queue_as MY_QUEUE
|
|
|
|
|
|
|
|
def perform(greeter = "David")
|
|
|
|
JobBuffer.add("#{greeter} says hello")
|
|
|
|
end
|
|
|
|
end
|