How to dispatch an event from an Action
Hi,
I have a View Action, very simple, on click I want it to trigger an event that should be queued...
so far I have:
However it runs the event synchronously. Horizon never receives it (and it fails!)
The event has
implement ShouldQueue
.
Can I send this event to the queue from within an action?Solution:Jump to solution
I dont think its an issue with Filament, Action can call any function, can you confirm your env file QUEUE_CONNECTION and can you confirm your queue is working please
3 Replies
Has nobody encountered that?
Solution
I dont think its an issue with Filament, Action can call any function, can you confirm your env file QUEUE_CONNECTION and can you confirm your queue is working please
Damn! You're a legend!
I have just changed computers a few days ago, and I was transfering the site, but I didn't copy/paste the .env file. So the queue connection was on sync.... Thanks a lot!