Skip to content

Commit 09028dc

Browse files
fix: exclude PageSpeed Insights API errors from retries. (#2010)
1 parent e0753f9 commit 09028dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Task/Runner.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ class Runner
8181
7 => self::TASK_RETRY_ALWAYS, // CURLE_COULDNT_CONNECT
8282
28 => self::TASK_RETRY_ALWAYS, // CURLE_OPERATION_TIMEOUTED
8383
35 => self::TASK_RETRY_ALWAYS, // CURLE_SSL_CONNECT_ERROR
84-
52 => self::TASK_RETRY_ALWAYS // CURLE_GOT_NOTHING
84+
52 => self::TASK_RETRY_ALWAYS, // CURLE_GOT_NOTHING
85+
'lighthouseError' => self::TASK_RETRY_NEVER
8586
];
8687

8788
/**

0 commit comments

Comments
 (0)