5
I’m learning and trying to solve a POST case request where a dispatch of a body well wide to be processed by API and the return is a job ID to access the result.
It turns out that the time it takes the API to process may vary depending on the size of the body and I have to check the status of 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
route for example URLlib.retrieve()
or something like that.
What would be the best way to monitor the various POST requests sent to know if your status is complete and if yes download.
Looking for pattern, good practice or even some module to import that helps.
your question is not very clear, but anyway: you’ve heard of
celery
?– Rafael Barros
Haven’t heard anything about Celery yet. Maybe this API type will help you see link at the end. what is intended is to periodically query the api to obtain that the job status is complete.https://developers.arcgis.com/rest/elevation/api-reference/checking-job-status.htm
– Jorge Vidinha
in English: http://stackoverflow.com/questions/9034091/how-to-check-task-status-in-celery
– Rafael Barros
Thanks Rafael, I don’t think I need so much for my case. However thanks for sharing, Celery seems to be interesting but not for my small scale.
– Jorge Vidinha