Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message "tags" #49

Open
kbond opened this issue Mar 27, 2023 · 1 comment
Open

Message "tags" #49

kbond opened this issue Mar 27, 2023 · 1 comment

Comments

@kbond
Copy link
Contributor

kbond commented Mar 27, 2023

Laravel Horizon has the concept of tags. I think this could be pretty trivial to add to this bundle via a Stamp and perhaps an attribute:

// as an explicit stamp when dispatching
$bus->dispatch(new RenderVideo($video), [
    new TagStamp('render', 'video:'.$video->getId()),
]);

// as an attribute on the message
#[MessageTag('render')]
class RenderVideo
{}

The tags could be saved as a json column in the db for lookup/monitoring.

@kbond
Copy link
Contributor Author

kbond commented Mar 27, 2023

With symfony/scheduler, we could auto-add schedule and schedule:<name> tags to these messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant