def METHOD_NAME() -> None:
	"""Loop through sites and enqueue events that are not already queued"""
	if os.path.exists(os.path.join(".", ".restarting")):
		# Don't add task to queue if webserver is in restart mode
		return
	with frappe.init_site():
		sites = get_sites()
	# Sites are sorted in alphabetical order, shuffle to randomize priorities
	random.shuffle(sites)
	for site in sites:
		try:
			enqueue_events_for_site(site=site)
		except Exception:
			frappe.logger("scheduler").debug(f"Failed to enqueue events for site: {site}", exc_info=True)