File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
src/simcore_service_notifications Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def read_reqs(reqs_path: Path) -> set[str]:
2424NAME = "simcore-service-notifications"
2525VERSION = (CURRENT_DIR / "VERSION" ).read_text ().strip ()
2626AUTHORS = ("Andrei Neagu (GitHK)" ,)
27- DESCRIPTION = "Service for executing commands on docker nodes "
27+ DESCRIPTION = "Service used for sending notifications to users via different channels "
2828
2929PROD_REQUIREMENTS = tuple (
3030 read_reqs (CURRENT_DIR / "requirements" / "_base.txt" )
Original file line number Diff line number Diff line change 88from ...clients .rabbitmq import get_rabbitmq_rpc_server
99
1010ROUTERS : list [RPCRouter ] = [
11- # import form various domains and attach here
11+ # import and use all routers here
1212]
1313
1414
Original file line number Diff line number Diff line change 11import logging
22from asyncio import Task
33from datetime import timedelta
4+ from typing import Final
45
56from fastapi import FastAPI
67from models_library .healthchecks import IsResponsive , LivenessResult
1213
1314_logger = logging .getLogger (__name__ )
1415
16+ _LVENESS_CHECK_INTERVAL : Final [timedelta ] = timedelta (seconds = 10 )
17+
1518
1619class PostgresLiveness :
1720 def __init__ (self , app : FastAPI ) -> None :
@@ -30,7 +33,7 @@ def is_responsive(self) -> bool:
3033 async def setup (self ) -> None :
3134 self ._task = create_periodic_task (
3235 self ._check_task ,
33- interval = timedelta ( seconds = 10 ) ,
36+ interval = _LVENESS_CHECK_INTERVAL ,
3437 task_name = "posgress_liveness_check" ,
3538 )
3639
You can’t perform that action at this time.
0 commit comments