Is Anaplan Async or Sync? Export task status

I am connecting to Anaplan API from AWS  using Python. I am able to connect, run export etc.

 

https://private-anon-9863bbf5c2-anaplan.apiary-mock.com/1/3/workspaces/workspaceID/models/modelID/processes/processId/tasks/taskId.

 

I am getting the status of task as IN PROGRESS but expeting COMPLETE. I need some help putting how to iterate/wait until the task status returns COMPLETE.

 

appreciate your thoughts or advice

Best Answer

  • With Python, you just need to create a simple loop to check on the status of the response and perform until it meets your criteria:

     

    task=""

     

    while task != "Complete":

       task=getTastStatus

     

    This is just a psuedocode example, but something similar to this will work.

     

    For your reference, there is a Python library for Anaplan in our knowledge base that handles all this, please take a moment to review and feel free to use if you like.

     

    Best,
    Jesse