Commits

Donald Stufft  committed 1487b10

Be smarter about what we queue

  • Participants
  • Parent commits e59eedd

Comments (0)

Files changed (1)

             tags = ["pkg~%s" % pkg if pkg is not None else "simple-index"
                         for pkg in self._changed_packages]
 
-            # Enqueue the purge
-            self.enqueue(tasks.purge_fastly_tags,
+            # We only need to bother to enqueue a task if we have something
+            #   to purge
+            if tags:
+                # Enqueue the purge
+                self.enqueue(tasks.purge_fastly_tags,
                             self.config.fastly_api_domain,
                             self.config.fastly_api_key,
                             self.config.fastly_service_id,