Skip to content

[Quality] Queue InAppNotification for async delivery #52

@ibourgeois

Description

@ibourgeois

Problem

InAppNotification uses the Queueable trait but does not implement ShouldQueue. Notifications fire synchronously. When NotificationController::store() sends to 'all' users, it loads the entire user table and blocks the request for the full delivery duration.

Required Change

Add implements ShouldQueue to InAppNotification so notifications are dispatched to the queue.

Files

  • app/Notifications/InAppNotification.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions