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/distribution_worker.rb

12 lines
223 B
Ruby
Raw Normal View History

Fix rubocop issues, introduce usage of frozen literal to improve performance
2016-11-15 16:56:29 +01:00
# frozen_string_literal: true
Fix Scheduler::SubscriptionsScheduler (#2834) * Fix Scheduler::SubscriptionsScheduler, add worker test for it * Change production log level of Sidekiq to "warn" instead of "info"
2017-05-06 13:05:03 +02:00
class DistributionWorker
Add link to github project to footer, move FanOutOnWriteService calls to DistributionWorker. That isn't the heaviest service, yet, but gotta start somewhere
2016-03-25 03:22:26 +01:00
include Sidekiq::Worker
def perform(status_id)
Split SalmonWorker into smaller parts, move profile updating into another job
2017-04-05 21:41:50 +02:00
FanOutOnWriteService.new.call(Status.find(status_id))
Adding some rescues to workers, e.g. don't fail removal job when status can't be found in the first place (already removed)
2016-12-19 09:31:12 +01:00
rescue ActiveRecord::RecordNotFound
Fix Scheduler::SubscriptionsScheduler (#2834) * Fix Scheduler::SubscriptionsScheduler, add worker test for it * Change production log level of Sidekiq to "warn" instead of "info"
2017-05-06 13:05:03 +02:00
true
Add link to github project to footer, move FanOutOnWriteService calls to DistributionWorker. That isn't the heaviest service, yet, but gotta start somewhere
2016-03-25 03:22:26 +01:00
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 48ms Template: 1ms
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