Rebuild a Threaded Flask app to be stoppable

Job ID: 31780217

Budget: $30 – $250 USD

Right now I have a very sturdy Python Flask API that creates images using Python's Threaded architecture.

It runs a program which iterates 200 times until it's done and then starts again with the next API request.

My customers are asking for the ability to interrupt the process before the Thread is finished, and I can't get that working with either Threading or Multiprocessing.

I'd like someone who knows more about Python to quickly help me solve this problem. Thanks!

Deliverables
There is currently an AWS EC2 machine that is the staging server.

You would have access to all the Python and Flask code that is on that machine.

I would give access to the Staging webapp and you would have the 2 API requests that are being called (basically start and stop)

The only deliverable would be a working application.