-
Notifications
You must be signed in to change notification settings - Fork 19.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(core): Don't fail task runner task if logging fails #12401
Changes from all commits
d6f449a
67cd4ec
9600049
470d4d9
7a95180
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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, | ||
}); | ||
|
||
Comment on lines
+456
to
+463
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's no There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The RPC calls are initiated by user code. Hence it's up to the user code to handle or ignore them. If the user code throws, we of course error the task. |
||
const returnValue = await dataPromise; | ||
|
||
return isSerializedBuffer(returnValue) ? toBuffer(returnValue) : returnValue; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.