19 lines
396 B
Ruby
19 lines
396 B
Ruby
# frozen_string_literal: true
|
|
|
|
# A job that applies a bulk update request after it is approved.
|
|
#
|
|
# @see {BulkUpdateRequestProcessor}
|
|
# @see {BulkUpdateRequest}
|
|
class ProcessBulkUpdateRequestJob < ApplicationJob
|
|
retry_on Exception, attempts: 0
|
|
|
|
# XXX delayed_job specific
|
|
def max_attempts
|
|
1
|
|
end
|
|
|
|
def perform(bulk_update_request)
|
|
bulk_update_request.processor.process!
|
|
end
|
|
end
|