Updated domains cli remoteallremote command batching
• Updated: - domains cli remoteallremote command batching
This commit is contained in:
parent
8a041c1e2c
commit
a9387c5167
@ -44,7 +44,7 @@ module GabSocial
|
|||||||
def deleteallremote
|
def deleteallremote
|
||||||
dry_run = options[:dry_run] ? ' (DRY RUN)' : ''
|
dry_run = options[:dry_run] ? ' (DRY RUN)' : ''
|
||||||
|
|
||||||
Account.remote.by_domain_accounts.each do |acct|
|
Account.remote.by_domain_accounts.find_in_batches do |acct|
|
||||||
domain = acct.domain
|
domain = acct.domain
|
||||||
|
|
||||||
say("\n\n\n - Starting domain block for #{domain} #{dry_run}", :green)
|
say("\n\n\n - Starting domain block for #{domain} #{dry_run}", :green)
|
||||||
@ -64,7 +64,7 @@ module GabSocial
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
say('\nDomain block deleteallremote done', :green)
|
say('\n\n - Domain block deleteallremote done', :green)
|
||||||
end
|
end
|
||||||
|
|
||||||
option :concurrency, type: :numeric, default: 50, aliases: [:c]
|
option :concurrency, type: :numeric, default: 50, aliases: [:c]
|
||||||
|
Loading…
Reference in New Issue
Block a user