Why Isn't flow.exit() Terminating the Workflow Immediately as Expected?

This topic was automatically generated from Slack. You can find the original thread here.

I encountered something very weird today, Isn’t flow.exit() supposed to terminate the workflow immediately on call without executing the rest of the code? If my memory serves me correctly, that’s definitely what used to happen. It’s not working right in any of my use cases.

Hi , per this doc here, you will need to return $.flow.exit() , notice the return statement