Flask end response and continue processing
QUICK and EASY method. We will use pythons Thread Library to acheive this. Your API consumer has sent something to process and which is processed by my_task() function which takes 10 seconds to execute. But the consumer of the API wants a response as soon as they hit your API which is return_status() function. You … Read more