Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from pydantic.alias_generators import to_camel
from servicelib.utils import limited_as_completed

from ..socketio.messages import send_message_to_standard_group
from ..socketio.messages import send_message_to_user

_MAX_CONCURRENT_SENDS: Final[int] = 3

Expand Down Expand Up @@ -62,7 +62,9 @@ async def _send_message_to_recipients(
):
async for _ in limited_as_completed(
(
send_message_to_standard_group(app, recipient, notification_message)
send_message_to_user(
app, recipient, notification_message, ignore_queue=True
)
for recipient in recipients
),
limit=_MAX_CONCURRENT_SENDS,
Expand Down
Loading