early return in event of bad network response

This commit is contained in:
Alex Holliday committed 2025-05-19 11:23:40 -07:00
1 parent fd1edf9651
commit 7651596617
1 file changed
+9 -1
+9 -1
View File
@@ -258,8 +258,16 @@ class JobQueueHelper {
job.data.type === "distributed_http" ||
job.data.type === "distributed_test"
) {
return;
await job.updateProgress(100);
return true;
}
// If the network response is not found, we're done
if (!networkResponse) {
await job.updateProgress(100);
return false;
}
// Handle status change
await job.updateProgress(60);
const { monitor, statusChanged, prevStatus } =