feat: update the place holder for error out and cancel the task

This commit is contained in:
2025-05-01 11:40:21 -03:00
parent dfa38ae5ff
commit a7269bd06d

View File

@ -64,6 +64,7 @@ export async function routes() {
console.log("[TASK] req.body", req.body); console.log("[TASK] req.body", req.body);
try { try {
if (!success){ if (!success){
// TODO: Need to call the server to cancel the task
await namespaceWrapper.storeSet(`result-${roundNumber}`, status.ISSUE_SUMMARIZATION_FAILED); await namespaceWrapper.storeSet(`result-${roundNumber}`, status.ISSUE_SUMMARIZATION_FAILED);
console.error("[TASK] Error summarizing repository:", message); console.error("[TASK] Error summarizing repository:", message);
return; return;