You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
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)
The text was updated successfully, but these errors were encountered:
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
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!
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)
The text was updated successfully, but these errors were encountered: