We are encountering problems with the Redis “new Redis event” trigger, where a single publish event sometimes triggers multiple duplicate workflow runs. For instance, there have been instances where one event led to three separate workflow runs - all of which have the same start time. Temporarily disabling and then reenabling the workflow with the “new Redis event” trigger resolves the issue of duplicate runs. However, the problem occasionally resurfaces whenever we modify that workflow again.
It feels like the redis trigger doesn’t properly call or cleanup/deregister the closeFunction method.
What is the error message (if any)?
No error message, but there are duplicate workflow runs. The problem gets resolved if I disable and then reenable the “Redis Trigger Bug POC” Workflow.
How many workers do you have in your queue mode setup? How long does this issue typically take to happen as well is it something that happens after a few days?
As a test I have set up a Redis Trigger that sends a message to Gotify then I have another trigger that runs every hour to send a message to Redis.
I am not sure what your message frequency is but if you let me know I can tweak the schedule.
Hi @Jon, currently we’re operating with just one worker. The issue we’re facing isn’t related to the duration for which the workflow is active. Instead it’s connected to modifying the workflow that uses the Redis trigger. Occasionally, editing that workflow leads to future Redis events to triggering duplicate executions of the Workflow. I unfortunately haven’t been able to identify a consistent pattern to this behavior yet.