Class: WCC::Media::Engine::RegistersSubscriptionsJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/wcc/media/engine.rb

Instance Method Summary collapse

Instance Method Details

#performObject



77
78
79
80
81
82
83
84
85
86
87
# File 'lib/wcc/media/engine.rb', line 77

def perform
  Toot::RegistersSubscriptions.call
rescue WCC::Data::Mapper::ServiceUnavailable => e
  _handle_error(e)
rescue Faraday::ConnectionFailed => e
  _handle_error(e)
rescue Toot::RegisterSubscriptionFailure => e
  raise unless e.status == 503

  _handle_error(e)
end