fix(core): Don't fail task runner task if logging fails (#12401)

This commit is contained in:
Tomi Turtiainen
2024-12-31 09:19:36 +02:00
committed by GitHub
parent f78ccebe51
commit 0860fbe971
3 changed files with 105 additions and 50 deletions

View File

@@ -452,15 +452,15 @@ export abstract class TaskRunner extends EventEmitter {
});
});
this.send({
type: 'runner:rpc',
callId,
taskId,
name,
params,
});
try {
this.send({
type: 'runner:rpc',
callId,
taskId,
name,
params,
});
const returnValue = await dataPromise;
return isSerializedBuffer(returnValue) ? toBuffer(returnValue) : returnValue;