Skip to content

Commit

Permalink
Update to use feval-fast endpoint from mathworks
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Feb 28, 2024
1 parent 3faf7e7 commit 41c5db2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/procedures/matlab/matlab.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ MATLAB.function = async function (fn, args = [], numReturnValues = 1) {
arguments: args.map((a) => this._parseArgument(a)),
nargout: numReturnValues,
}];
const resp = await request.post(MATLAB_URL, body, { timeout: 5000 });
const results = resp.data.messages.FEvalResponse;
// TODO: add timeout detection
// TODO: add retry
const resp = await request.post(`${MATLAB_URL}/feval-fast`, body, {
timeout: 5000,
});
const results = resp.data.FEvalResponse;
// TODO: add batching queue
return this._parseResult(results[0]);
};
Expand Down

0 comments on commit 41c5db2

Please sign in to comment.