diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-10 13:48:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-10 13:48:48 +0200 |
commit | 86748148256b504c0411119628435b1445959309 (patch) | |
tree | d2d0337156c1528d417b1d124d0e0636ec283b85 /app/workers/maintenance/uncache_preview_worker.rb | |
parent | 9045f5e3f8aabcdff908058764882b7165a03925 (diff) |
Change tootctl to use inline parallelization instead of Sidekiq (#11776)
- Remove --background option - Add --concurrency(=5) option - Add progress bars
Diffstat (limited to 'app/workers/maintenance/uncache_preview_worker.rb')
-rw-r--r-- | app/workers/maintenance/uncache_preview_worker.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/app/workers/maintenance/uncache_preview_worker.rb b/app/workers/maintenance/uncache_preview_worker.rb deleted file mode 100644 index 810ffd8cc..000000000 --- a/app/workers/maintenance/uncache_preview_worker.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true - -class Maintenance::UncachePreviewWorker - include Sidekiq::Worker - - sidekiq_options queue: 'pull' - - def perform(preview_card_id) - preview_card = PreviewCard.find(preview_card_id) - - return if preview_card.image.blank? - - preview_card.image.destroy - preview_card.save - rescue ActiveRecord::RecordNotFound - true - end -end |