refactor(core): Make placeholders in manual executions in workers temporary (#12463)

This commit is contained in:
Iván Ovejero
2025-01-14 14:32:00 +01:00
committed by GitHub
parent ce22f065c2
commit c2569a0607
7 changed files with 142 additions and 22 deletions

View File

@@ -169,8 +169,12 @@ export class Push extends TypedEmitter<PushEvents> {
this.logger.warn(`Size of "${type}" (${eventMb} MB) exceeds max size ${maxMb} MB. Trimming...`);
if (type === 'nodeExecuteAfter') pushMsgCopy.data.data.data = TRIMMED_TASK_DATA_CONNECTIONS;
else if (type === 'executionFinished') pushMsgCopy.data.rawData = ''; // prompt client to fetch from DB
if (type === 'nodeExecuteAfter') {
pushMsgCopy.data.itemCount = pushMsgCopy.data.data.data?.main[0]?.length ?? 1;
pushMsgCopy.data.data.data = TRIMMED_TASK_DATA_CONNECTIONS;
} else if (type === 'executionFinished') {
pushMsgCopy.data.rawData = ''; // prompt client to fetch from DB
}
void this.publisher.publishCommand({
command: 'relay-execution-lifecycle-event',