Kenny_I
Kenny_I

Reputation: 2503

Until flag not working with Until activity of ADF and loop keep going

I'm trying to execute Azure Durable Function in ADF. I have "Get Current Function Status" Activity inside Until activity. Possible value are pending, completed, running and exception. I have variable until_flag which do get value "true" if runTimeStatus get value Completed.

My problem is that even runTimeStatus is completed Until loop never stop. It keeps going. What is wrong?

I'm following tutorial https://www.youtube.com/watch?v=aD3k8k5sdao

I have tried:

@equals(bool(variables('until_flag')), 'true')

and

@bool(variables('until_flag'))

enter image description here

enter image description here

Upvotes: 0

Views: 2654

Answers (1)

KarthikBhyresh-MT
KarthikBhyresh-MT

Reputation: 5034

If you look into the official MS docs on UntilActivity

Enter an expression that will be evaluated after all child activities defined in the Until activity are executed. If the expression evaluates to false, the Until activity will execute all its child activities again. When it evaluates to true, the Until activity will complete. The expression can be a literal string expression, or any combination of dynamic expressions, functions, system variables, or outputs from other activities.

So try with this expression to evaluate condition

@equals(variables('until_flag'), 'false')

Upvotes: 2

Related Questions