refactor: Add tracing details to native Python runner logs (#19024)

This commit is contained in:
Iván Ovejero
2025-09-01 10:08:48 +02:00
committed by GitHub
parent 2c6e2f6c7e
commit 61f79319df
6 changed files with 84 additions and 7 deletions

View File

@@ -25,12 +25,19 @@ export class PythonTaskRunnerSandbox {
async runUsingIncomingItems() {
const itemIndex = 0;
const node = this.executeFunctions.getNode();
const workflow = this.executeFunctions.getWorkflow();
const taskSettings: Record<string, unknown> = {
code: this.pythonCode,
nodeMode: this.nodeMode,
workflowMode: this.workflowMode,
continueOnFail: this.executeFunctions.continueOnFail(),
items: this.executeFunctions.getInputData(),
nodeId: node.id,
nodeName: node.name,
workflowId: workflow.id,
workflowName: workflow.name,
};
const executionResult = await this.executeFunctions.startJob<INodeExecutionData[]>(