apioo / fusio

Open source API management platform

Home Page:https://www.fusio-project.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Events Not Being Dispatched to the subscribers

MailsonPrates opened this issue · 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?

@chriskapp please, help me

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 thanks for reply!

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

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

Thank you so much!