fusio icon indicating copy to clipboard operation
fusio copied to clipboard

Events Not Being Dispatched to the subscribers

Open MailsonPrates opened this issue 2 years ago • 5 comments

Hi,

Fusio version: 4.0.0 I followed this doc: https://docs.fusio-project.org/docs/backend/api/event

Everything seems to be fine, but the events are not dispatched to subscribers.

Main cron job is working: image

Event created: image

Endpoint configured and tested and assigned to subscriber: image

Action configured: image

Action code: image

May you guys help me, what can be wrong?

MailsonPrates avatar Oct 31 '23 21:10 MailsonPrates

@chriskapp please, help me

MailsonPrates avatar Nov 01 '23 12:11 MailsonPrates

Hi @MailsonPrates I would assume that you have setup Fusio manually or do you use our docker image? In case of manually setup you would need to run the consumer command s.

php bin/fusio messenger:consume

to consume the messages and trigger the requests. You can also check the messenger_messages table to see whether entries are available in the queue.

chriskapp avatar Nov 01 '23 13:11 chriskapp

@chriskapp thanks for reply!

Yes, manual setup. Ok, I"ll execute this command. Is there anywhere I could read more about those commands?

MailsonPrates avatar Nov 01 '23 13:11 MailsonPrates

no problem, we have introduced this command in the new Fusio 4.0 version, for this we have integrated the symfony/messenger component s. https://symfony.com/doc/current/messenger.html into Fusio, this is currently not correctly reflected at the docs but I will update the documentation once I find the time. In the meantime you can also imply run php bin/fusio help messenger:consume to see all available options. So you basically need to run this command either via cron or use a process control tool like supervisord s. https://symfony.com/doc/current/messenger.html#messenger-supervisor you can see this also at our docker image s. https://github.com/apioo/fusio-docker/blob/main/supervisor/fusio.conf#L2

chriskapp avatar Nov 01 '23 17:11 chriskapp

Thank you so much!

MailsonPrates avatar Nov 01 '23 19:11 MailsonPrates