According to https://developers.cloudflare.com/workflows/build/rules-of-workflows/, awaiting multipl

According to https://developers.cloudflare.com/workflows/build/rules-of-workflows/, awaiting multiple steps with Promise.all is fine.

But nested steps seem like they might cause issues with the retry logic? I would suggest just placing the saveNotesStep after the Promise.all and reading the output of the step. In that case if the "save" step fails, the generateNotesStep will have cached the response. It might only be an issue if the serialized data exceeds the limits.
Was this page helpful?