class EswJob < ApplicationJob
  queue_as :critical

  def perform(article_id)
    article = Article.find(article_id)
    if article.should_index?
      ESWorkplace.index([article.esw_data])
    else
      # todo
    end
  end
end
