Class: NewsmastMastodon::BoostPostWorker

Inherits:
Object
  • Object
show all
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.message}"
  { status: :error, error: e.message }
end