1. Michał Kwiatkowski
  2. Cheesecake service


infrared  committed 6758894

Added delay inside results posting loop.

  • Participants
  • Parent commits 29f121f
  • Branches default

Comments (0)

Files changed (1)

File cheesecake_daemon.py

View file
         for name, version, score in latest_scores:
             if not post_results(name, version, score.serialize()):
                 store.log("Cheesecake data rejected by PyPI for package %s-%s." % (name, version))
+            # Do not contact PyPI to often.
+            time.sleep(1)
         # Get new list of packages from PyPI.
         # Allow user to interrupt this one.