Skip to content

Commit

Permalink
fix(lib): add explain logic into compute phase
Browse files Browse the repository at this point in the history
  • Loading branch information
manushak committed Aug 9, 2024
1 parent cd19917 commit 523f94f
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 523f94f

Please sign in to comment.