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

Events Not Being Dispatched to the subscribers #527

Open
MailsonPrates opened this issue Oct 31, 2023 · 5 comments
Open

Events Not Being Dispatched to the subscribers #527

MailsonPrates opened this issue Oct 31, 2023 · 5 comments
Labels

Comments

@MailsonPrates
Copy link

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 MailsonPrates changed the title Events Not Being Dispatched to subscribers Events Not Being Dispatched to the subscribers Oct 31, 2023
@MailsonPrates
Copy link
Author

@chriskapp please, help me

@chriskapp
Copy link
Member

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.

@MailsonPrates
Copy link
Author

@chriskapp thanks for reply!

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

@chriskapp
Copy link
Member

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

@MailsonPrates
Copy link
Author

Thank you so much!

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

No branches or pull requests

2 participants