Skip to content

Commit 2742251

Browse files
committed
Use correct key for checking whether an instance exists
1 parent 20ddb2f commit 2742251

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/redis/scripts/complete_workflow_task.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ for i = 1, otherWorkflowInstances do
102102
local conflictEventPayloadData = getArgv()
103103

104104
-- Does the instance exist already?
105-
local instanceExists = redis.call("EXISTS", targetActiveInstanceExecutionState)
105+
local instanceExists = redis.call("EXISTS", targetActiveInstanceExecutionKey)
106106
if instanceExists == 1 then
107107
redis.call("XADD", pendingEventsKey, "*", "event", conflictEventData)
108108
storePayload(conflictEventId, conflictEventPayloadData)

0 commit comments

Comments
 (0)