Workflow with 1 branch that webhookReturn prevent the other branch of beeing executed

hi,

My startTrigger block has 2 branches:

  • 1 for my flow (long flow with many actions)
  • 1 with a webhookReturn block that instantly sends a status code of 200

Because I must instantly return a status code of 200 while still getting the execution of the other branch.

However, when I use this 2 branches, the full workflow ends (the second branch is triggered, but nothing beyond it)

Is it a bug, or intended behavior ?

Hi @som, if we would like to send the 200 status code instantly, but still execute the rest of the workflow. We could set up our steps without adding a branch to the "startTrigger:"

image

There is no guarantee a block will run in the order we expect by setting up our branches the way you present. It is possible that the workflow is running the whole other branch first, and then going back to run the response block.

Give this setup a try and let us know how it goes. :slightly_smiling_face:

I'll give it a try, but I've moved on, now trying Windmill.dev because of many limitations on retool.

1 Like