You'd wanna associate the workflow ID with the user ID in your backend somehow
You'd wanna associate the workflow ID with the user ID in your backend somehow


waitForEvent state count towards the concurrent instances limit? And out of interest, does a workflow in this state have any active compute for listening?step.do call or just some sort of top-level orchestration that would kick off smaller workflows? If you mean all of step.do calls, what value is wrapping it in a workflow even adding then since you lose all of the Workflow APIs inside of the Container where the processing is being done?NonRetryableError outside of step, but the the message was not used as an error.

workflows/example-workflow/instance/runID)? We have a step that passes API keys to another step, and it's all logged in the workflow runs... which isn't ideal.timeout within waitForEvent means that after that timeout workflow continues or workflow is being stopped?
workerd's C++ are multithreaded or not though (i.e. hashing)
waitForEventwaitForEventstep.dostep.doNonRetryableError workflows/example-workflow/instance/runIDtimeoutworkerdawait step.do("generate images", async () => {
void containerFetch(this.env, "/pdf-to-images", {
document_id: document.id,
file: pdf,
workflow_id: event.instanceId,
});
});
if (!hasLastPageImage) {
await step.waitForEvent("images generated", {
timeout: "1 hour",
type: WorkflowEventType.ImagesGenerated,
});
}run(){
while(true){
await step.do(...)
await step.sleep(5 min)
}
}