Logo
Explore Support Help
Register Sign In
tykayn/mastodon
1
0
Fork 0
You've already forked mastodon
mirror of https://framagit.org/tykayn/mastodon.git synced 2023-08-25 08:33:12 +02:00
Code Issues Projects Releases Wiki Activity
mastodon/app/workers/merge_worker.rb

12 lines
274 B
Ruby
Raw Normal View History

Move merging/unmerging of timelines into background. Move blocking into background as well since it's a computationally expensive
2017-01-23 21:29:34 +01:00
# frozen_string_literal: true
class MergeWorker
include Sidekiq::Worker
Separate background jobs into different queues. ATTENTION: new queue "pull" must be added to the Sidekiq invokation in your systemd file The pull queue will handle link crawling, thread resolving, and OStatus processing. Such tasks are more likely to hang for a longer time (due to network requests) so it is more sensible to not make the "in-house" tasks wait for them.
2017-04-04 00:53:20 +02:00
sidekiq_options queue: 'pull'
Move merging/unmerging of timelines into background. Move blocking into background as well since it's a computationally expensive
2017-01-23 21:29:34 +01:00
def perform(from_account_id, into_account_id)
FeedManager.instance.merge_into_timeline(Account.find(from_account_id), Account.find(into_account_id))
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 54ms Template: 0ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API Help
Logo Chapril
Accueil Chapril
Services libres
Nous suivre
CGU
Mentions légales
Nous contacter
Accueil Chapril
Services libres
Nous suivre
CGU
Mentions légales
Nous contacter