Skip to content

Commit 40729d8

Browse files
fix: task filter import
1 parent a63532a commit 40729d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/notifications/src/simcore_service_notifications/services/notifications_service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
22

33
from models_library.rpc.notifications import Notification
4-
from servicelib.celery.models import TaskContext
4+
from servicelib.celery.models import TaskFilter
55
from servicelib.celery.task_manager import TaskManager
66

77
from ..modules.celery.tasks import TaskQueue
@@ -16,8 +16,8 @@ async def send_notification(
1616
) -> None:
1717
await task_manager.send_task(
1818
# send to the specific channel worker
19-
name=f"notifications.{notification.channel.type}",
20-
context=TaskContext(), # TODO: TaskFilter
19+
task_name=f"notifications.{notification.channel.type}",
20+
task_filter=TaskFilter(), # TODO: TaskFilter
2121
task_queue=TaskQueue.DEFAULT,
2222
notification=notification,
2323
)

0 commit comments

Comments
 (0)