22 lines
462 B
Ruby
22 lines
462 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class EnqueueErrorJob < ActiveJob::Base
|
||
|
class EnqueueErrorAdapter
|
||
|
class << self
|
||
|
def enqueue(*)
|
||
|
raise ActiveJob::EnqueueError, "There was an error enqueuing the job"
|
||
|
end
|
||
|
|
||
|
def enqueue_at(*)
|
||
|
raise ActiveJob::EnqueueError, "There was an error enqueuing the job"
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
|
||
|
self.queue_adapter = EnqueueErrorAdapter
|
||
|
|
||
|
def perform
|
||
|
raise "This should never be called"
|
||
|
end
|
||
|
end
|