Current state with latest updates

This commit is contained in:
2026-08-23 13:28:34 +02:00
parent 5af95f6533
commit f52879edbb
74 changed files with 5174 additions and 960 deletions
@@ -58,10 +58,12 @@ final class AiArtworkVectorSearchService
*/
private function downloadArtworkImage(Artwork $artwork, string $url): ?array
{
// Runs synchronously in the web request path — keep the budget tight
// so a slow origin can't pin an FPM worker for 20s+.
$response = Http::accept('*/*')
->connectTimeout(5)
->timeout(20)
->retry(1, 200, throw: false)
->connectTimeout(2)
->timeout(6)
->retry(0)
->get($url);
if (! $response->ok()) {
@@ -91,6 +93,10 @@ final class AiArtworkVectorSearchService
return [];
}
if ($this->client->circuitOpen()) {
throw new RuntimeException('Vector gateway temporarily unavailable (circuit open after a recent failure).');
}
$fileFailure = null;
try {