Class: Workers::Base
- Inherits:
-
Object
- Object
- Workers::Base
- Includes:
- Sidekiq::Worker
- Defined in:
- app/workers/base.rb
Direct Known Subclasses
DeferredDispatch, DeleteAccount, DeletePostFromService, FetchProfilePhoto, FetchPublicPosts, FetchWebfinger, GatherOEmbedData, GatherOpenGraphData, HttpMulti, Mail::AlsoCommented, Mail::CommentOnPost, Mail::ConfirmEmail, Mail::InviteEmail, Mail::Liked, Mail::Mentioned, Mail::PrivateMessage, Mail::ReportWorker, Mail::Reshared, Mail::StartedSharing, NotifyLocalUsers, PostToService, ProcessPhoto, PublishToHub, Receive, ReceiveEncryptedSalmon, ReceiveLocalBatch, ReceiveUnencryptedSalmon, ResendInvitation, ResetPassword
Instance Method Summary collapse
-
#suppress_annoying_errors(&block) ⇒ Object
In the long term we need to eliminate the cause of these.
Instance Method Details
#suppress_annoying_errors(&block) ⇒ Object
In the long term we need to eliminate the cause of these
12 13 14 15 16 17 18 19 20 |
# File 'app/workers/base.rb', line 12 def (&block) yield rescue Diaspora::ContactRequiredUnlessRequest, Diaspora::RelayableObjectWithoutParent => e Rails.logger.info("error on receive: #{e.class}") rescue ActiveRecord::RecordInvalid => e Rails.logger.info("failed to save received object: #{e.record.errors.full_messages}") raise e unless e..match(/already been taken/) end |