code: def publish(self):
          
  
          try:
               for collection in self.settings.get("scheduler").get("collections"):
                  yield self.publish_for_collection(collection)
          except Exception as ex:
              self.logger.error(ex)
docs: Iterate over the scheduler collections and apply any actions found