collectiveidea / delayed_job

Database based asynchronous priority queue system -- Extracted from Shopify
http://groups.google.com/group/delayed_job
MIT License
4.82k stars 956 forks source link

using DelayedJob results in multiple email Amazon SES #1174

Closed matheus-caldeira closed 2 years ago

matheus-caldeira commented 2 years ago

I had the same problem as he(https://github.com/collectiveidea/delayed_job/issues/260)! This section in the Readme not working with SES.

You may also wish to consider using Active Job with Action Mailer which provides convenient .deliver_later syntax that forwards to Delayed Job under-the-hood.

ruby '2.7.1'

gem 'rails', '~> 6.0.3.6'
gem 'delayed_job', '4.1.10'
gem 'delayed_job_active_record', '4.1.7'
gem 'aws-sdk-s3', '~> 1'
gem 'aws-sdk-rails'
matheus-caldeira commented 2 years ago

I need use mailer before method, Mailer.delay.method.