Is there a recommended way to have a
Is there a recommended way to have a conditional step in a workflow? It seems like an "if" outside of a step, causes an error even if the workflow completes successfully. I'm wanting to pull a config from the KV store, so I can toggle steps on/off without having to deploy code. Should I put the conditional inside a step?
7 Replies
Hey @Levi you should be able to use if outside of a step can you share what you are doing
Here is a slightly modified version of my code, but I think it shows what I'm doing. The workflow runs fine, but I see errors in the Workers observability.
Can you share the error that you are seeing on workers observability?
That’s a known bug that we are solving (it’s not actually an error) it’s just displayed as such.
Thank you @avenceslau ! Is there a github issue I can watch? I'll probably wait until it's fixed before making my steps conditional. I don't like errors 😄 fake ones or real ones
https://discord.com/channels/595317990191398933/1296923707792560189/1417897139723304982
It’s not related to the if sadly