summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fc10700)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
/**
* Handler id of the `activeInterval` worker activity check.
*/
/**
* Handler id of the `activeInterval` worker activity check.
*/
- // eslint-disable-next-line no-undef
protected activeInterval?: NodeJS.Timeout
/**
protected activeInterval?: NodeJS.Timeout
/**
response = { status: false, error: new Error('Unknown task operation') }
break
}
response = { status: false, error: new Error('Unknown task operation') }
break
}
+ const { status, error } = response
this.sendToMainWorker({
taskFunctionOperation,
this.sendToMainWorker({
taskFunctionOperation,
- taskFunctionOperationStatus: response.status,
+ taskFunctionOperationStatus: status,
- ...(!response.status &&
- response.error != null && {
+ ...(!status &&
+ error != null && {
workerError: {
name: taskFunctionProperties.name,
workerError: {
name: taskFunctionProperties.name,
- message: this.handleError(response.error as Error | string),
+ message: this.handleError(error as Error | string),