Hello brother.
It all depends on the situation.
If I am for example on the turn with two pair and I see that Villain is possibly waiting for a flush draw, in general I go all in on the turn. Because on the turn he has at least 9 chances that his card will fall, at most 8 if I block his flush draw with one of my cards.
When the situation is reversed, if I get pushed all in and I have the flush draw, I generally look to call if there are more chances on the river for my card to fall than just the flush draw.
An example would be, suppose the villain is


and I have


.
the flop is



.
The villain raises I pay
The turn is a

.
Villain goes all in.... At that moment I begin to see the possibilities. I can believe that in his hands he has an 88 99 or 1010 or AK or KQ or KK with his K on the turn, or he may also have a flush draw to make. But there I see my possibilities. And my chances are that I get 9 cards of my color on the river or there are also 3 Q that help me with a high straight. Posibles oods to me









.



so now the possible cards become 12. If my stack exceeds the villain's stack I don't hesitate for a second to pay.
I hope you understand brother.
Greetings
😊😊😊😊😊😊