title: Unable to start project server while using infinite while loop in python task schedule
body: <p>If I'm using schedule module to execute a function for a pre-defned times used the following code to achieve this, but using this infinite while loop unable start project server. Please help me to solve this issue.</p>
  
  <pre><code>import schedule
  import time
  
  def test():
    # code write here
  
  # function executes for every 10 mins
  schedule.every(10).minutes.do(test())
  
  while True:
      schedule.run_pending()
      time.sleep(1)
  </code></pre>