chinwagsocial/app
Claire 4d41c91335 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
2022-01-28 22:39:48 +01:00
..
chewy Change tootctl search deploy algorithm (#14300) 2020-07-14 18:10:35 +02:00
controllers Remove set-cookie header on custom.css (#16314) 2022-01-28 22:39:48 +01:00
helpers Change RTL detection to rely on unicode-bidi paragraph by paragraph (#14573) 2020-12-15 12:56:43 +01:00
javascript New Crowdin updates (#15413) 2020-12-26 23:51:46 +01:00
lib Fix some RedisLocks auto-releasing too fast (#16276) 2022-01-28 22:39:48 +01:00
mailers Change account suspensions to be reversible by default (#14726) 2020-09-15 14:37:58 +02:00
models Create instance actor if it hasn't been properly seeded (#15693) 2022-01-28 22:39:48 +01:00
policies Fix admins being able to suspend their instance actor (#14567) 2020-12-15 17:23:58 +01:00
presenters Fix performance on instances list in admin UI (#15282) 2020-12-14 09:06:34 +01:00
serializers Use existing FeaturedTag serializer and delete AccountFeaturedTag serializer (#15415) 2020-12-23 16:43:38 +01:00
services Fix some RedisLocks auto-releasing too fast (#16276) 2022-01-28 22:39:48 +01:00
validators Fix follow limit preventing re-following of a moved account (#14207) 2020-12-18 09:18:31 +01:00
views Fix custom CSS when CDN_HOST is set (#15927) 2022-01-28 22:39:48 +01:00
workers Fix some RedisLocks auto-releasing too fast (#16276) 2022-01-28 22:39:48 +01:00