Implement task scheduler asynchronously from workflow

We need a workflow that does following task :

  1. update in db
  2. call third party api
  3. call another third party api - this may take some time to reflect the change [ could be 5-10min]. we need to check the third api again and again until the api returns success

All our workflows are synchronous - we wait for the response using
" stub.getResult(clazz)".

So we cannot wait for 5-10 minutes.

How do we implement such kind of scenario in temporal?

Hi @broshni
here are best practice for polling, as mentioned there your approach depends on how frequently you need to poll the third party api. Let us know if you have further questions/concerns.