i am writing a program that does mirorring and organizes tasks, i have to often delete a large number of task or create a large number of tasks. I am using the Python library.
I implemented batch dispatching for create_task and delete_task operations via the client.batch_api.create_batch_request API call. It works fine but this approach is still too slow. I have to handle 45000 tasks right now.
So i tried to use Thread to have concurrent requests via client.batch_api.create_batch_request API, but no success so far. I suspect problems either with my threading approach or the API functions. That’s why i need to clarify: Can “client.batch_api.create_batch_request” be called parallel by multiple threads? The API documentation https://developers.asana.com/docs/rate-limits says that i can have 50 concurrent GET requests and 15 of the other operations (POST, PUT, DELETE). So can i have 15 threads which make concurrent DELETE requests via the batch API?
Question 2: How can i make task creation and deletion as fast as possible? I am happy for any suggestions on how to delete and create massive number of tasks in the fastest way.