I am learning and trying to resolve a case of a POST request where a large body is being sent to be processed by the API and return is a job ID to access the result.
It turns out that the time the API takes to process can vary depending on the body size and I have to check the status of the job with another GET request using the job ID to know your status. If the status is complete then I can download the result ficheiro.zip
via for example URLlib.retrieve()
or something similar.
What would be the best way to monitor the various POST requests sent to know if your status is complete and if so download.
I'm looking for a standard, good practice, or even some import module that helps.