mastodon/app/workers
Eugen Rochko 61ed133fea
Account archive download (#6460)
* Fix #201: Account archive download

* Export actor and private key in the archive

* Optimize BackupService

- Add conversation to cached associations of status, because
  somehow it was forgotten and is source of N+1 queries
- Explicitly call GC between batches of records being fetched
  (Model class allocations are the worst offender)
- Stream media files into the tar in 1MB chunks
  (Do not allocate media file (up to 8MB) as string into memory)
- Use #bytesize instead of #size to calculate file size for JSON
  (Fix FileOverflow error)
- Segment media into subfolders by status ID because apparently
  GIF-to-MP4 media are all named "media.mp4" for some reason

* Keep uniquely generated filename in Paperclip::GifTranscoder

* Ensure dumped files do not overwrite each other by maintaing directory partitions

* Give tar archives a good name

* Add scheduler to remove week-old backups

* Fix code style issue
2018-02-21 23:21:32 +01:00
..
activitypub Retry delivering toots over ActivityPub for about 2 days (#6298) 2018-01-19 15:49:48 +01:00
admin
import Rename ResolveRemoteAccountService to ResolveAccountService (#6327) 2018-01-22 14:25:09 +01:00
pubsubhubbub Fix PuSH workers (#6200) 2018-01-05 23:04:35 +01:00
scheduler Account archive download (#6460) 2018-02-21 23:21:32 +01:00
after_remote_follow_request_worker.rb
after_remote_follow_worker.rb
authorize_follow_worker.rb
backup_worker.rb Account archive download (#6460) 2018-02-21 23:21:32 +01:00
block_worker.rb
bootstrap_timeline_worker.rb
digest_mailer_worker.rb Move e-mail digest task to sidekiq, reduce workload, improve hint (#6252) 2018-01-15 04:34:28 +01:00
distribution_worker.rb
domain_block_worker.rb
feed_insert_worker.rb
import_worker.rb
link_crawl_worker.rb
merge_worker.rb
notification_worker.rb
processing_worker.rb
push_update_worker.rb
refollow_worker.rb
regeneration_worker.rb Fix home regeneration (#6251) 2018-01-17 23:56:03 +01:00
remote_profile_update_worker.rb
removal_worker.rb
resolve_account_worker.rb Rename ResolveRemoteAccountService to ResolveAccountService (#6327) 2018-01-22 14:25:09 +01:00
salmon_worker.rb
soft_block_domain_followers_worker.rb
soft_block_worker.rb
thread_resolve_worker.rb
unfavourite_worker.rb
unmerge_worker.rb
web_push_notification_worker.rb