Error blocks running while there are no errors

I am using workflows to automate a process. I have specified error blocks, that should only run once a particular block fails. But whenever I run my workflow, all the blocks run, even the error ones.
Do workflows work in such a way that all the input blocks for a particular block must have an output for that block to run?

Here, query8 should run only if code11 fails

But in my logs, I can see that code11 ran successfully and even then query8 ran

Would really appreciate some help with this!

Hi Krishna! :wave:

If you want blocks to run when a specific block fails (e.g. a block that has to be an error handler block that kicks off the logic and will kick off on any failure) -- the above behavior is actually expected.

Please do let me know if you have any other questions!