Running DQL in Workflow - How to make task fail if no results come back

Hi

I have a use case where my workflow must wait until a certain DQL query returns data. My thought was to use a DQL Task and let it “retry on error”. The problem is that I cant specify my “success condition” of the DQL query as the DQL task always returns successful as long as the query itself is not invalid.

Any thoughts on this? I know I can solve this by using a JavaScript task that exeuctes the DQL but wondering if there is an option of just using the DQL Task

Any updates by chance?

Hi. I just internally reached out to our product manager @ChristopherHejl - he told me that they are planning to add the option to have a task fail in case no results come back.