* Dropped all references to Resque * Moved all jobs under app/workers since that's the Sidekiq convention * Renamed Jobs module to Worker to match new location * Adapted all jobs to Sidekiq * Replaced all enqueue calls with perform_async * Dropped Resque hacks from specs and features, replaced with sidekig/testing in RSpec and sidekig/testing/inline in Cucumber * Updated scripts to start a Sidekiq server * Inline Sidekiq sinatra app * Let Sidekiq create the actual Redis instance * Workaround already initialized constant warnings in service models * Resolved ToDo in one job definition by creating proper exception clases for some errors in receiving posts * Added sidekiq section to configuration to make it completly configurable to the user * Add Sidekiq middleware for clean backtraces * Delay HttpMulti retry to give offline pods a chance to come back up * Do not retry on GUID already taken and alike errors * Be graceful about deleted posts in GatherOEmbedData
33 lines
953 B
Ruby
33 lines
953 B
Ruby
# Copyright (c) 2010-2012, Diaspora Inc. This file is
|
|
# licensed under the Affero General Public License version 3 or later. See
|
|
# the COPYRIGHT file.
|
|
|
|
module Diaspora
|
|
# the post in question is not public, and that is somehow a problem
|
|
class NonPublic < StandardError
|
|
end
|
|
|
|
# the account was closed and that should not be the case if we want
|
|
# to continue
|
|
class AccountClosed < StandardError
|
|
end
|
|
|
|
# something that should be accessed does not belong to the current user and
|
|
# that prevents further execution
|
|
class NotMine < StandardError
|
|
end
|
|
|
|
|
|
# Received a message without having a contact
|
|
class ContactRequiredUnlessRequest < StandardError
|
|
end
|
|
|
|
# Got a relayable (comment, like etc.) without having the parent
|
|
class RelayableObjectWithoutParent < StandardError
|
|
end
|
|
|
|
# After building an object the author doesn't match the one in the
|
|
# original XML message
|
|
class AuthorXMLAuthorMismatch < StandardError
|
|
end
|
|
end
|