Greetings,

Greetings, I am calling like this to start a workflow.
const instances = await env.MATCH_DAY_UPDATE.createBatch(
batch.map((match) => ({ params: { matchId: match.id } })),
);
const instances = await env.MATCH_DAY_UPDATE.createBatch(
batch.map((match) => ({ params: { matchId: match.id } })),
);
But the instances value is an empty array and no workflow is starting yet batch contain some elements. Is there a problem? Thanks,
2 Replies
Olga Silva
Olga Silva3w ago
Hey, this might be related to a createBatch bug we found. Can you check if this is now working for you?
duxum
duxumOP3w ago
It is not working. I am calling it from a scheduled function handler, and still instance is an empty array.

Did you find this page helpful?