Spaces:
Runtime error
Runtime error
skip uploading result when failed
Browse files
bench/src/server/index.ts
CHANGED
|
@@ -62,14 +62,8 @@ queue.on("failed", async (benchmark) => {
|
|
| 62 |
console.error(`β Failed to save failed benchmark ${benchmark.id}:`, error);
|
| 63 |
}
|
| 64 |
|
| 65 |
-
//
|
| 66 |
-
|
| 67 |
-
try {
|
| 68 |
-
await hfUploader.uploadResult(benchmark);
|
| 69 |
-
} catch (error) {
|
| 70 |
-
console.error(`β Failed to upload failed benchmark ${benchmark.id} to HF Dataset:`, error);
|
| 71 |
-
}
|
| 72 |
-
}
|
| 73 |
});
|
| 74 |
|
| 75 |
// Log queue events
|
|
|
|
| 62 |
console.error(`β Failed to save failed benchmark ${benchmark.id}:`, error);
|
| 63 |
}
|
| 64 |
|
| 65 |
+
// Don't upload failed benchmarks to HF Dataset
|
| 66 |
+
// Only local storage keeps track of failures
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
});
|
| 68 |
|
| 69 |
// Log queue events
|