Class: CycloneLariat::Outbox::Services::Resend
- Inherits:
-
Object
- Object
- CycloneLariat::Outbox::Services::Resend
- Extended by:
- LunaPark::Extensions::Callable
- Includes:
- LunaPark::Extensions::Injector
- Defined in:
- lib/cyclone_lariat/plugins/outbox/services/resend.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/cyclone_lariat/plugins/outbox/services/resend.rb', line 19 def call .each_with_error do || .transaction do begin .lock(.uuid) sns_client.publish , fifo: .fifo? .delete(.uuid) rescue StandardError => e .update_error(.uuid, e.) on_sending_error&.call(, e) end end end end |