mastodon-glitch/app
Claire 9a19227f17
Fix some RedisLocks auto-releasing too fast (#16276)
* Fix Delete and Create-related locks expiring too fast

Fixes #16238

By default, RedisLock expires after 10 seconds, which may not be enough to
process statuses, especially when those have attached media files.

This commit extends those 10 seconds to 15 minutes, which should be plenty
enough to handle any status, while being short enough to not waste many
sidekiq job retries in the exceedingly rare case in which a sidekiq process
would crash when processing a `Create` or `Delete`.

* Fix other RedisLock autorelease durations

Fixes #15645

- things that only perform a few simple database queries (e.g. finding and
  saving a record) have been left unchanged, so they'll still use the default
  10s duration
- things that perform significantly more complex database queries have been
  changed to a 5 minutes timeout
- things that perform multiple HTTP queries have been changed to a 15 minutes
  timeout
2021-05-19 23:52:08 +02:00
..
chewy Change `tootctl search deploy` algorithm (#14300) 2020-07-14 18:10:35 +02:00
controllers Change trending hashtags to be affected be reblogs (#16164) 2021-05-07 14:33:43 +02:00
helpers Add management of delivery availability in Federation settings (#15771) 2021-05-05 23:39:02 +02:00
javascript Remove duplicate CSS properties (#16278) 2021-05-19 23:51:52 +02:00
lib Fix some RedisLocks auto-releasing too fast (#16276) 2021-05-19 23:52:08 +02:00
mailers Prepare Mastodon for Rails 6 (#15911) 2021-03-17 10:09:55 +01:00
models Update fix-duplicates maintenance script to support latest migrations (#16231) 2021-05-12 23:19:44 +02:00
policies Add management of delivery availability in Federation settings (#15771) 2021-05-05 23:39:02 +02:00
presenters Add server rules (#15769) 2021-02-21 19:50:12 +01:00
serializers Add width and height to attachments in ActivityPub (#16245) 2021-05-16 23:09:03 +02:00
services Fix some RedisLocks auto-releasing too fast (#16276) 2021-05-19 23:52:08 +02:00
validators Fix existing username validator not allowing multiple accounts (#16153) 2021-05-04 14:22:04 +02:00
views Change trending hashtags to be affected be reblogs (#16164) 2021-05-07 14:33:43 +02:00
workers Fix some RedisLocks auto-releasing too fast (#16276) 2021-05-19 23:52:08 +02:00