Skip to content

Commit a3eabad

Browse files
committed
#653 feat: Increase timeout to 2 min for plotting
1 parent a88a3a6 commit a3eabad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

webapp/redux/middleware/plotMiddleware.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ const plotFigure = async (plotId, plotMethod, plotType = false, uri = null, them
3535
new Promise((resolve, reject) => {
3636
setTimeout(() => {
3737
resolve(null);
38-
}, 30000);
38+
}, 2 * 60 * 1000); // Timeout set to 2 minutes, previously, 30000 (30s)
3939
})]);
4040

41+
// let response = await Utils.evalPythonMessage(NETPYNE_COMMANDS.plotFigure, [plotMethod, plotType, theme], false)
4142
console.log('Plot response received for', plotId);
4243
if (!response && !uri) { //png plots return null response but they provide a uri so they can be grabbed from the workspace
4344
return null;

0 commit comments

Comments
 (0)