Project

General

Profile

Actions

Defect #36393

closed

Mailer.with_synched_deliveries doesn't correctly detect other async Queue adapters

Added by Felix Schäfer over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Email notifications
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Mailer.with_synched_deliveries source:/trunk/app/models/mailer.rb@21350#L639 will not detect other async queue adapters than the Rails core ActiveJob::QueueAdapters::AsyncAdapter (such as those used by external queuing systems such as the DelayedJobAdapter, ResqueAdapter or SidekiqAdapter).

With these queue adapters in normal use, Mailer.with_synched_deliveries does nothing. This can lead to problems as it is expected that email deliveries (in our case daily reminders) would run inline but instead they were attempted to be scheduled using the normal queue adapter.


Files


Related issues

Related to Redmine - Defect #36395: Mailer.with_synched_deliveries is not thread-safeNew

Actions
Actions

Also available in: Atom PDF