diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-10 13:48:48 +0200 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-21 03:54:18 -0600 |
commit | 68456c90ce53b5a9852d30ea83d28e14b8c0bac0 (patch) | |
tree | 22d2b96ddeaec8bdebed68496b817a02ec14087e /app/workers/maintenance/redownload_account_media_worker.rb | |
parent | 2d70dc36ffbd72dc533e2b2b1990909fda875f35 (diff) |
port tootsuite#11776 to monsterfork: Change tootctl to use inline parallelization instead of Sidekiq
- Remove --background option - Add --concurrency(=5) option - Add progress bars
Diffstat (limited to 'app/workers/maintenance/redownload_account_media_worker.rb')
-rw-r--r-- | app/workers/maintenance/redownload_account_media_worker.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/app/workers/maintenance/redownload_account_media_worker.rb b/app/workers/maintenance/redownload_account_media_worker.rb deleted file mode 100644 index 6afbe6e19..000000000 --- a/app/workers/maintenance/redownload_account_media_worker.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -class Maintenance::RedownloadAccountMediaWorker - include Sidekiq::Worker - - sidekiq_options queue: 'pull', retry: false - - def perform(account_id) - account = account_id.is_a?(Account) ? account_id : Account.find(account_id) - account.reset_avatar! - account.reset_header! - account.save - rescue ActiveRecord::RecordNotFound - true - end -end |