Skip to content

Commit 595925c

Browse files
Merge pull request #955 from Green-Software-Foundation/fix-explain
Fix `explain` feature
2 parents 9ddcede + 523f94f commit 595925c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/if-run/lib/compute.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,14 @@ const computeNode = async (node: Node, params: ComputeParams): Promise<any> => {
145145
if (isExecute(plugin)) {
146146
inputStorage = await plugin.execute(inputStorage, nodeConfig);
147147
node.outputs = inputStorage;
148+
149+
if (params.context.explainer) {
150+
addExplainData({
151+
pluginName,
152+
metadata: plugin.metadata,
153+
pluginData: params.context.initialize!.plugins[pluginName],
154+
});
155+
}
148156
debugLogger.setExecutingPluginName();
149157
}
150158
}

0 commit comments

Comments
 (0)