# frozen_string_literal: true

class DoiConvertContainerByIdJob < ApplicationJob
  queue_as :lupo_background

  rescue_from ActiveJob::DeserializationError,
              Elasticsearch::Transport::Transport::Errors::BadRequest do |error|
    Rails.logger.error error.message
  end

  def perform(options = {})
    Doi.convert_container_by_id(options)
  end
end
