mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 07:08:07 +01:00
Fix RedownloadMediaWorker
not being called on transient S3 failure (#28714)
This commit is contained in:
parent
2c05b8a60d
commit
1070804a1a
1 changed files with 1 additions and 0 deletions
|
@ -283,6 +283,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
||||||
RedownloadMediaWorker.perform_in(rand(30..600).seconds, media_attachment.id)
|
RedownloadMediaWorker.perform_in(rand(30..600).seconds, media_attachment.id)
|
||||||
rescue Seahorse::Client::NetworkingError => e
|
rescue Seahorse::Client::NetworkingError => e
|
||||||
Rails.logger.warn "Error storing media attachment: #{e}"
|
Rails.logger.warn "Error storing media attachment: #{e}"
|
||||||
|
RedownloadMediaWorker.perform_async(media_attachment.id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue