ezy
ezy2d ago

Workflow retry from step

Hi all! I’ve been working with workflow component and building a multi-step process. I'm curious about the journaling and retry mechanisms. For example, let’s say I have 3 actions: - The first action creates a threadId for an agent. - The second action uses that threadId to call Gemini via the "agent" component. - The third action fails 50/50 (for testing). The response from Gemini is quite large, and I’d like to avoid repeating it if a later step fails. I know there’s a built-in retry mechanism, which works fine, but what happens if maxAttempts is reached and the workflow ends in a "failed" state? Ideally, I don’t want to repeat the earlier steps. I would like to resume the workflow from the point of failure. Is there a way to manually trigger this kind of retry, for example using the workflowId? Or would it be better to store the workflow progress in db and check before each action whether that step has already been completed?
1 Reply
Convex Bot
Convex Bot2d ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!

Did you find this page helpful?