if statement into workflow #134
Answered
by
rmcdaniel
AnassSamaa
asked this question in
Q&A
-
Hi, i want to know if it is advisable to use if statement into the workflow, i have tried it and it seems like sometimes it is working and sometimes it doesn't. In my case i put the if at the start of the workflow with the condition that if the signal become true the workflows has to end (I' am using an awaitWithTimeout), but sometime even if the signal is changed to true the if statement get ignored and the workflow keep going. |
Beta Was this translation helpful? Give feedback.
Answered by
rmcdaniel
Oct 10, 2023
Replies: 1 comment 3 replies
-
Can you share your workflow code please? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should only check
$this->assigned
or any other signal after you await or awaitWithTimeout on it. Otherwise you will see the issue where the timing of the signal matters.