OperationalBina / PipeRT

MIT License
11 stars 7 forks source link

Run flask server in production mode #81

Open ItayHoresh opened 4 years ago

ItayHoresh commented 4 years ago

The flask server is currently running in develop mode. It can cause problems when running the pipe for long time

MayoG commented 4 years ago

main

ItayHoresh commented 4 years ago

There are 2 flask servers:

  1. for pipe manager with UI
  2. for the output component flask display
AmitKarin commented 4 years ago

I tried to change the app.run to using the waitress.serve to run the app, but it only made the video run really slow compare to the flask as usual. what i did was to import the serve from waitress in both main.py and flask_video_display.py and changed where the app.run to serve(app, host="0.0.0.0", port=5000)

is it ok that the video is running slow? what do you think we should do ? @ItayHoresh

ItayHoresh commented 4 years ago

The video speed is more important than change flask to be in production mode. Our use of the flask display is for development for now.

AmitKarin commented 4 years ago

What will we do when we'll need to use the pipeline in production mode and will need it to run for a long time?