Skip to content

Commit

Permalink
Fix gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
renan-souza committed Dec 9, 2024
1 parent d307a11 commit 7798b64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/run-tests-simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')"

Expand Down
9 changes: 5 additions & 4 deletions src/flowcept/flowcept_api/flowcept_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 7798b64

Please sign in to comment.