Skip to content

Commit 0fda9c3

Browse files
author
Andrei Neagu
committed
feedback
1 parent d98653c commit 0fda9c3

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

services/notifications/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def read_reqs(reqs_path: Path) -> set[str]:
2424
NAME = "simcore-service-notifications"
2525
VERSION = (CURRENT_DIR / "VERSION").read_text().strip()
2626
AUTHORS = ("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

2929
PROD_REQUIREMENTS = tuple(
3030
read_reqs(CURRENT_DIR / "requirements" / "_base.txt")

services/notifications/src/simcore_service_notifications/api/rpc/routing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from ...clients.rabbitmq import get_rabbitmq_rpc_server
99

1010
ROUTERS: list[RPCRouter] = [
11-
# import form various domains and attach here
11+
# import and use all routers here
1212
]
1313

1414

services/notifications/src/simcore_service_notifications/clients/postgres/_liveness.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import logging
22
from asyncio import Task
33
from datetime import timedelta
4+
from typing import Final
45

56
from fastapi import FastAPI
67
from models_library.healthchecks import IsResponsive, LivenessResult
@@ -12,6 +13,8 @@
1213

1314
_logger = logging.getLogger(__name__)
1415

16+
_LVENESS_CHECK_INTERVAL: Final[timedelta] = timedelta(seconds=10)
17+
1518

1619
class 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

0 commit comments

Comments
 (0)