FaceRec icon indicating copy to clipboard operation
FaceRec copied to clipboard

Improve Multithreading Implementation in MAIN.PY

Open Kishore007raj opened this issue 2 years ago • 2 comments

Bug I found: The current implementation of the multithreading logic in main.py uses a ThreadPoolExecutor to run both the FastAPI and Flask applications simultaneously

Identified Issues : Some of the Issues I found were a Lack of Error Handling; resource management and also code readability.

Proposed Improvement: These are the ways we can improve the multithreading function: (1).implementing a try-except Error Handling (2): Enhance Code Clarity

By addressing these issues and implementing the proposed improvements, the multithreading functionality in main.py can be made more robust, reliable, and maintainable. Please consider this issue for further discussion and contributions!

Kishore007raj avatar Oct 07 '24 17:10 Kishore007raj

Yep sure - go ahead and fix it up :)

devansh-shah-11 avatar Oct 07 '24 17:10 devansh-shah-11

sure!!

Kishore007raj avatar Oct 07 '24 18:10 Kishore007raj