Skip to content

Commit 919dfee

Browse files
committed
mionr
1 parent d0b4dda commit 919dfee

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/notifications/_notifications.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async def send_notification(
1717
) -> None:
1818
await rabbitmq_rpc_client.request(
1919
NOTIFICATIONS_RPC_NAMESPACE,
20-
TypeAdapter(RPCMethodName).validate_python("send_notification"),
20+
TypeAdapter(RPCMethodName).validate_python(send_notification.__name__),
2121
timeout_s=_DEFAULT_TIMEOUT_S,
2222
notification=notification,
2323
)

services/notifications/src/simcore_service_notifications/core/events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def create_app_lifespan(
4747
app_lifespan.add(_settings_lifespan)
4848

4949
# - postgres
50+
# NOTE: for now we will remove
5051
app_lifespan.add(postgres_database_lifespan)
5152
app_lifespan.add(postgres_lifespan)
5253

services/notifications/src/simcore_service_notifications/modules/celery/_email_tasks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ async def send_email_notification(
2626
notification: Notification,
2727
) -> None:
2828
_ = task, task_id
29+
30+
#
31+
# NOTE: task can be used to provide progress
32+
#
33+
2934
assert isinstance(notification.channel, EmailChannel) # nosec
3035

3136
_logger.info("Sending email notification to %s", notification.channel.to_addr)

0 commit comments

Comments
 (0)