David Alonso
David Alonso16h ago

Using a custom step context inside workflows

Just like there's a guide for creating a custom ctx inside Convex functions, I was wondering if there's something similar for workflows, where we can potentially pass authenticated user context from the function that starts the workflow into the workflow step
3 Replies
Convex Bot
Convex Bot16h 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!
David Alonso
David AlonsoOP5h ago
related to workflows, is there a way to set a timeout after which to cancel the workflow? oh and another one: is there a way to reactively subscribe to the status of a workflow?
ian
ian4h ago
1. For now I would have the first line of the function be const myStep = wrapStep(step); 2. You can schedule a function for the future to check the status & cancel the workflow if it's still running 3. Yes all queries on workflow status are reactive. The status will likely get richer soon as I add pause/resume, etc.

Did you find this page helpful?