You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/app/services
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
4 years ago
..
activitypub Fix some RedisLocks auto-releasing too fast (#16276) 4 years ago
concerns
keys Fix rubocop config and warnings (#15503) 4 years ago
account_search_service.rb Optimize some regex matching (#15528) 4 years ago
after_block_domain_from_account_service.rb
after_block_service.rb Fix blocking someone not clearing up list feeds (#16205) 4 years ago
after_unallow_domain_service.rb
app_sign_up_service.rb
authorize_follow_service.rb
backup_service.rb
base_service.rb
batched_remove_status_service.rb Fix undefined method error when batch-removing statuses with ElasticSearch on (#15421) 4 years ago
block_domain_service.rb Add support for reversible suspensions through ActivityPub (#14989) 4 years ago
block_service.rb
bootstrap_timeline_service.rb Change auto-following admin-selected accounts, show in recommendations (#16078) 4 years ago
clear_domain_media_service.rb
delete_account_service.rb Update Mastodon to Rails 6.1 (#15910) 4 years ago
deliver_to_device_service.rb
fan_out_on_write_service.rb Fix DMs not appearing into timelines (#15182) 4 years ago
favourite_service.rb
fetch_link_card_service.rb Fix some RedisLocks auto-releasing too fast (#16276) 4 years ago
fetch_oembed_service.rb Fix YouTube embeds failing due to YouTube serving wrong OEmbed URLs (#15716) 4 years ago
fetch_remote_status_service.rb
fetch_resource_service.rb
follow_service.rb Fix empty home feed before first follow has finished processing (#16152) 4 years ago
import_service.rb Update Mastodon to Rails 6.1 (#15910) 4 years ago
move_service.rb
mute_service.rb
notify_service.rb
post_status_service.rb
precompute_feed_service.rb
process_hashtags_service.rb Change trending hashtags to be affected be reblogs (#16164) 4 years ago
process_mentions_service.rb Remove spam check and dependency on nilsimsa gem (#16011) 4 years ago
reblog_service.rb Change trending hashtags to be affected be reblogs (#16164) 4 years ago
reject_follow_service.rb
remove_status_service.rb Fix some RedisLocks auto-releasing too fast (#16276) 4 years ago
report_service.rb Fix reports of already suspended accounts being recorded (#16047) 4 years ago
resolve_account_service.rb Fix some RedisLocks auto-releasing too fast (#16276) 4 years ago
resolve_url_service.rb Improve searching for private toots from URL (#14856) 4 years ago
search_service.rb Optimize some regex matching (#15528) 4 years ago
suspend_account_service.rb Fix remote reporters not receiving suspend/unsuspend activities (#16050) 4 years ago
tag_search_service.rb
unallow_domain_service.rb
unblock_domain_service.rb Add support for reversible suspensions through ActivityPub (#14989) 4 years ago
unblock_service.rb
unfavourite_service.rb
unfollow_service.rb
unmute_service.rb
unsuspend_account_service.rb Fix remote reporters not receiving suspend/unsuspend activities (#16050) 4 years ago
update_account_service.rb
verify_link_service.rb
vote_service.rb