Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(batch-exports): handle retries on stalled jobs for killed workers (#5532)

Hassieb Pakzadb554068713b7
diff --git a/worker/src/features/batchExport/handleBatchExportJob.ts b/worker/src/features/batchExport/handleBatchExportJob.ts
index 127e21f73c..5891de191d 100644
--- a/worker/src/features/batchExport/handleBatchExportJob.ts
+++ b/worker/src/features/batchExport/handleBatchExportJob.ts
@@ -355,8 +355,8 @@ export const handleBatchExportJob = async (
);
}
if (jobDetails.status !== BatchExportStatus.QUEUED) {
- throw new Error(
- `Job ${batchExportId} has invalid status: ${jobDetails.status}`,
+ logger.warning(
+ `Job ${batchExportId} has invalid status: ${jobDetails.status}. Retrying anyway.`,
);
}