2024-06-04 14:48:30 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class E621PoolImportJob < ApplicationJob
|
2024-10-24 03:07:27 -05:00
|
|
|
queue_as :exports
|
2024-06-04 14:48:30 -05:00
|
|
|
|
|
|
|
def perform
|
|
|
|
PoolIndex.create_index!(delete_existing: true)
|
|
|
|
PoolIndex.import!
|
|
|
|
end
|
|
|
|
end
|