mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
1d35082b51
Fix #1295
16 lines
371 B
Ruby
16 lines
371 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Scheduler::DeletionScheduler
|
|
include Sidekiq::Worker
|
|
|
|
sidekiq_options unique: :until_executed, retry: 0
|
|
|
|
def perform
|
|
DeletionSchedule.includes(:user).find_in_batches do |schedules|
|
|
DeletionScheduleWorker.push_bulk(schedules) do |schedule|
|
|
[schedule.user.account_id, schedule.delay]
|
|
end
|
|
end
|
|
end
|
|
end
|