diff --git a/.github/workflows/run-tests-simple.yml b/.github/workflows/run-tests-simple.yml index 2af6baf5..a53ff4a2 100644 --- a/.github/workflows/run-tests-simple.yml +++ b/.github/workflows/run-tests-simple.yml @@ -10,6 +10,7 @@ jobs: runs-on: ubuntu-latest env: MONGO_ENABLED: false + LMDB_ENABLED: true timeout-minutes: 60 if: "!contains(github.event.head_commit.message, 'CI Bot')" diff --git a/src/flowcept/flowcept_api/flowcept_controller.py b/src/flowcept/flowcept_api/flowcept_controller.py index 391aa4c0..949a1cde 100644 --- a/src/flowcept/flowcept_api/flowcept_controller.py +++ b/src/flowcept/flowcept_api/flowcept_controller.py @@ -8,7 +8,6 @@ WorkflowObject, ) -from flowcept.commons.daos.docdb_dao.mongodb_dao import MongoDBDAO from flowcept.commons.daos.mq_dao.mq_dao_base import MQDao from flowcept.configs import MQ_INSTANCES, INSTRUMENTATION_ENABLED, DATABASES, MONGO_ENABLED from flowcept.flowcept_api.db_api import DBAPI @@ -185,8 +184,10 @@ def services_alive() -> bool: if not MQDao.build().liveness_test(): logger.error("MQ Not Ready!") return False - if MONGO_ENABLED and not MongoDBDAO(create_indices=False).liveness_test(): - logger.error("DocDB Not Ready!") - return False + if MONGO_ENABLED: + from flowcept.commons.daos.docdb_dao.mongodb_dao import MongoDBDAO + if not MongoDBDAO(create_indices=False).liveness_test(): + logger.error("DocDB Not Ready!") + return False logger.info("MQ and DocDB are alive!") return True