tasks: update the state of crashed tasks
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user