mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
13 lines
316 B
Ruby
13 lines
316 B
Ruby
class DocumentEntityAnalysisJob < ApplicationJob
|
|
queue_as :analysis
|
|
|
|
def perform(*args)
|
|
document_entity_id = args.shift
|
|
|
|
entity = DocumentEntity.find(document_entity_id)
|
|
return unless entity.present?
|
|
|
|
Documents::Analysis::ThirdParty::IbmWatsonService.analyze_entity(document_entity_id)
|
|
end
|
|
end
|