title: How to make functions auto run every 5 minutes?
body: <p>I wrote proxy checker and I need to automate checking for every 5 minutes. My <code>while True</code> loop skips the functions. When I have first iteration - functions are running, but with next iterations they are skipped, just printing <em>START!!!!!!</em> and <em>END----</em> in my console.</p>
  <pre><code>if __name__ == &quot;__main__&quot;:
      while True:
          print(&quot;START!!!!!!!!!!&quot;)
          http_proxy_check()
          save_proxy('http')
          print(&quot;END------------------&quot;)
          time.sleep(2)
  </code></pre>
  <p><em><strong>http_proxy_check function:</strong></em></p>
  <pre><code>def http_proxy_check():
      for proxy in http_proxyList:
          print(f&quot;Checking {http_proxyList.index(proxy)} of {len(http_proxyList)} element&quot;)
          thread = Thread(target=checkIp_http,args=(proxy.strip(), ))
          if len(threads)&lt;=1200 :
              thread.start()
              threads.append(thread)
          else:
              threads.clear()
  
      for thread in threads:
          thread.join()
  </code></pre>