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

Websocket not triggering update event when using cron triggered flow #22358

Closed
tomkyriacou64 opened this issue May 2, 2024 · 1 comment
Closed

Comments

@tomkyriacou64
Copy link

Describe the Bug

Hey everyone,

I'm encountering an issue with websockets, im thinking its a Directus bug or possibly my workflow. I've subscribed to my websocket, and it functions properly when I manually click to save and update content. However, I have a flow set up to run every 10 minutes via cron, which updates the collection item (changing its status to active and inactive), but it doesn't seem to trigger the websocket.

The websocket works fine when I manually update the item, and the flow successfully updates the item, but it doesn't seem to trigger a websocket update event when it updates via the cron flow.

I've asked a few people and they reckon it might be a bug with Directus. Any help would be greatly appreciated!

flow_1

flow_2

To Reproduce

Set up a flow with a cron trigger.
Configure the flow to update an item within a collection.
Observe that the websocket fails to detect the update triggered by the cron job.

Directus Version

v10.10.7

Hosting Strategy

Self-Hosted (Docker Image)

@tomkyriacou64 tomkyriacou64 changed the title Websocket not triggering on automated updates via cron job Websocket not triggering update event when using cron triggered flow May 2, 2024
@br41nslug
Copy link
Member

As discussed before emit events is not enabled in your update operation, so the events the websocket subscriptions listen to are not emitted

@br41nslug br41nslug closed this as not planned Won't fix, can't repro, duplicate, stale May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants