Skip to content

Commit

Permalink
Merge pull request #955 from Green-Software-Foundation/fix-explain
Browse files Browse the repository at this point in the history
Fix `explain` feature
  • Loading branch information
narekhovhannisyan authored Aug 9, 2024
2 parents 9ddcede + 523f94f commit 595925c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/if-run/lib/compute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@ const computeNode = async (node: Node, params: ComputeParams): Promise<any> => {
if (isExecute(plugin)) {
inputStorage = await plugin.execute(inputStorage, nodeConfig);
node.outputs = inputStorage;

if (params.context.explainer) {
addExplainData({
pluginName,
metadata: plugin.metadata,
pluginData: params.context.initialize!.plugins[pluginName],
});
}
debugLogger.setExecutingPluginName();
}
}
Expand Down

0 comments on commit 595925c

Please sign in to comment.