Class: NewsmastMastodon::BoostPostWorker
- Inherits:
-
Object
- Object
- NewsmastMastodon::BoostPostWorker
- Includes:
- Sidekiq::Worker
- Defined in:
- app/workers/newsmast_mastodon/boost_post_worker.rb
Instance Method Summary collapse
Instance Method Details
#perform(post_url) ⇒ Object
10 11 12 13 14 15 |
# File 'app/workers/newsmast_mastodon/boost_post_worker.rb', line 10 def perform(post_url) NewsmastMastodon::BoostPostService.new(post_url).call rescue => e Rails.logger.error "[BoostPostWorker] Error processing #{post_url}: #{e.class} - #{e.}" { status: :error, error: e. } end |