Fix the log error when the loop input array is too long (#4478)

This commit is contained in:
Donald Yang
2025-04-08 17:03:44 +08:00
committed by GitHub
parent 86988e31d9
commit 1f5709eda6

View File

@@ -33,7 +33,7 @@ export const dispatchLoop = async (props: Props): Promise<Response> => {
? Number(process.env.WORKFLOW_MAX_LOOP_TIMES) ? Number(process.env.WORKFLOW_MAX_LOOP_TIMES)
: 50; : 50;
if (loopInputArray.length > maxLength) { if (loopInputArray.length > maxLength) {
return Promise.reject('Input array length cannot be greater than 50'); return Promise.reject(`Input array length cannot be greater than ${maxLength}`);
} }
const outputValueArr = []; const outputValueArr = [];