From 4a1ce0790df13faeb62318a3d2b35448125b1e08 Mon Sep 17 00:00:00 2001 From: robertvoy Date: Thu, 10 Jul 2025 13:41:18 +1000 Subject: [PATCH] reduced payload sent to workers --- web/gpupanel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/gpupanel.js b/web/gpupanel.js index 2d2d4ec..516ab57 100644 --- a/web/gpupanel.js +++ b/web/gpupanel.js @@ -1091,10 +1091,10 @@ class DistributedExtension { // Get all nodes connected to distributed nodes const distributedIds = distributedNodes.map(node => node.id); - // For workers, only include upstream nodes to prevent downstream execution + // For workers, only include upstream nodes (this removes ALL downstream nodes after collectors) const connectedNodes = this.findCollectorUpstreamNodes(apiPrompt, distributedIds); - this.debugLog(`Pruning workflow: keeping ${connectedNodes.size} of ${Object.keys(apiPrompt).length} nodes`); + this.debugLog(`Pruning workflow: keeping ${connectedNodes.size} of ${Object.keys(apiPrompt).length} nodes (removed all downstream nodes)`); // Create pruned prompt with only required nodes const prunedPrompt = {}; @@ -1418,7 +1418,7 @@ class DistributedExtension { const promptToSend = { prompt, - extra_data: { extra_pnginfo: { workflow } }, + extra_data: { }, // Removed workflow from extra_pnginfo to reduce payload size client_id: api.clientId };