title: Even though i am using a --no-reload function call on the command line my flask application is still running twice sometimes just in first start
body: <p>I am using flask to host convolutional Neural network based recognition model which is connected to and Android frontend that is using kotlin to show and store results for a face attendance application.
  As i described in the title it runs twice when I just start the server(which also takes more time). Is there a way to solve this and is my guess of the cause of it running twice because of time taken to process the images accurate?
  P.S. i have checked the Android application i am receiving the request only once</p>
  <p>Edit:
  this is the code for the flask application :-</p>
  <pre><code>    @app.route('/',methods=['GET','POST'])
      def home():
          dict =request.json
          print(dict['request'])
          if dict[&quot;request&quot;]==&quot;save photo&quot;:
          return json.dumps({&quot;save photo&quot;:Save_and_Train.saveImage(dict)}, indent = 4)
  </code></pre>
  <p>this just saves a directory of images and goes through that whole directory to recognize the faces.
  There is another request checking for recognition but that works ok....</p>
  <p>And this command</p>
  <pre><code>    flask run --host=XXX.XXX.XX.XX --no-reload
  </code></pre>
  <p>to run the application
  is my gues of it being just the time correct ?</p>