order = Order.last
OrderMailer.with(order: order).paid.deliver_later
--
You received this message because you are subscribed to the Google Groups "Sidekiq" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sidekiq+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sidekiq/2fa23ed2-ffbb-422f-b883-2f3d2f8cf1eb%40googlegroups.com.
deliver_later is an ActiveJob API and has nothing to do with Sidekiq. You should read the ActiveJob guide.
On Wed, Dec 11, 2019 at 8:04 AM Sabri <plusatt...@gmail.com> wrote:
--Hi,I'm trying to debug an error that occurs randomly when using deliver_later.From the sidekiq wiki I learnt that I can't use complex object as a parameters Workers but I don't understand if the same applies for Mailers.Let's say I have a ActiveRecord model called Order; can these lines cause an error?order = Order.last
OrderMailer.with(order: order).paid.deliver_laterThe mailer is working properly but sometimes I get a MissingTemplate error (with the same code and the template exists) and I'm checking possible sources of error.Rails 5.2.3Sidekiq 5.2.7
You received this message because you are subscribed to the Google Groups "Sidekiq" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sidekiq/2fa23ed2-ffbb-422f-b883-2f3d2f8cf1eb%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to sidekiq+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sidekiq/3756aa3f-eb74-497e-a1f4-a670059ec15d%40googlegroups.com.