File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/notifications
services/notifications/src/simcore_service_notifications Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments