cic-internal-integration/apps/cic-eth/cic_eth/k8s/db.py

8 lines
216 B
Python
Raw Permalink Normal View History

2021-04-19 12:46:23 +02:00
from cic_eth.db.models.base import SessionBase
2021-04-19 15:59:13 +02:00
def health(*args, **kwargs):
2021-04-19 12:46:23 +02:00
session = SessionBase.create_session()
session.execute('SELECT count(*) from alembic_version')
session.close()
return True