docbrown/app/workers/emails
Jamie Gaskins 34a61abdca
Remove txn from with_statement_timeout block (#15088)
Turns out this caused a *different* problem. It would work for the first
delete batch in `BulkSqlDelete`, but subsequent `DELETE` queries would
then get their `statement_timeout`s reset to the global setting. The
issue was that `BulkSqlDelete` uses methods that don't respect nested
transactions, and we were already resetting the value of the setting to
its previous value anyway, so there was really no reason to run it
inside a transaction.

The only failure mode I know of here is that the `ensure` block breaks
because `connection` is severed. In that case, the value is reset anyway
when the connection pool replaces the connection so the failure does not
propagate.
2021-10-15 14:53:35 -04:00
..
enqueue_digest_worker.rb Rename SiteConfig to Settings::General (#13573) 2021-05-21 14:45:37 +02:00
remove_old_emails_worker.rb Remove txn from with_statement_timeout block (#15088) 2021-10-15 14:53:35 -04:00
send_user_digest_worker.rb Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00