Nothing inherently wrong. Just a function. But I don’t see you returning the state within the Workfl
Nothing inherently wrong. Just a function. But I don’t see you returning the state within the Workflow’s run method - it might be clearer to instead have
await step.do(name, mySharedFunc) - so that it’s the callback



