1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00
2021-09-16 13:46:50 -07:00

15 lines
251 B
Python

"""API Events."""
# Project
from hyperglass.state import use_state
def check_redis() -> None:
"""Ensure Redis is running before starting server."""
cache = use_state("cache")
cache.check()
on_startup = (check_redis,)
on_shutdown = ()