chinwagsocial/app/services/activitypub
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
..
fetch_featured_collection_service.rb Refactor domain block checks (#11268) 2019-07-09 03:27:35 +02:00
fetch_remote_account_service.rb Fix resolving accounts sometimes creating duplicate records for a given AP id (#15364) 2020-12-18 23:26:26 +01:00
fetch_remote_key_service.rb Improve federated ID validation (#8372) 2018-08-22 20:55:14 +02:00
fetch_remote_poll_service.rb Refactor domain block checks (#11268) 2019-07-09 03:27:35 +02:00
fetch_remote_status_service.rb Refactor fetching of remote resources (#11251) 2019-07-10 18:59:28 +02:00
fetch_replies_service.rb Fix poll update handler calling method was that was not available (#10246) 2019-03-12 22:58:59 +01:00
prepare_followers_synchronization_service.rb Add follower synchronization mechanism (#14510) 2020-10-21 18:04:09 +02:00
process_account_service.rb Fix some RedisLocks auto-releasing too fast (#16276) 2022-01-28 22:39:48 +01:00
process_collection_service.rb Add support for reversible suspensions through ActivityPub (#14989) 2020-11-08 00:28:39 +01:00
process_poll_service.rb Fix empty poll options not being filtered on remote poll update (#12484) 2019-11-26 22:46:31 +01:00
synchronize_followers_service.rb Add follower synchronization mechanism (#14510) 2020-10-21 18:04:09 +02:00