Is Anaplan Async or Sync? Export task status

Highlighted
New Contributor

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

Message 1 of 2
1 REPLY 1
Regular Contributor

Re: Is Anaplan Async or Sync? Export task status

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



Jesse Wilson
Solution Architect - Data Integrations
Singapore
Message 2 of 2