Hi,
I have workflow in typescript which has 5 activities.
One of the activities “checkStatus” has one API which returns status parameter.
I need to call this activity until I get status true.
I need to make this activity as recurring until I get status true.
Could you please let me know how to do it?
Hi @nehapatil7199
Depending on how often you want to check the status you can either implement the polling inside your activity, wait for x seconds and polls again (Frequent polling) or rely on activity retries to do it (infrequent polling)
Here is the explanation of both implementations in Java. I know you use TS, but I hope it helps.
Antonio