プロジェクト

全般

プロフィール

Vote #81773

完了

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

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Email notifications_9
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
9
version_id:
155
issue_org_id:
36393
author_id:
3866
assigned_to_id:
332
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
170
ステータス-->[Closed]

説明

@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.


journals

The attached patch simply removes the check for the @ActiveJob::QueueAdapters::AsyncAdapter@. This ensures deliveries in this context are always inline without trying to be clever about it.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Setting the target version to 5.0.0.
--------------------------------------------------------------------------------
Committed the patch. Thank you.
--------------------------------------------------------------------------------


related_issues

relates,New,36395,Mailer.with_synched_deliveries is not thread-safe

Admin Redmine さんが3年以上前に更新

  • カテゴリEmail notifications_9 にセット
  • 対象バージョン5.0.0_155 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0