tasks: update the state of crashed tasks

This commit is contained in:
Girish Ramakrishnan
2025-10-08 11:15:32 +02:00
parent f3be7aa763
commit f898925bc0
+1
View File
@@ -196,6 +196,7 @@ async function startTask(id, options) {
else taskError = { message:`Task ${id} crashed with unknown code ${sudoError.code}`, code: exports.ECRASHED };
debug(`startTask: ${id} done. error: %o`, taskError);
await safe(setCompleted(id, { error: taskError }), { debug });
throw taskError;
}