chore(): Prevent sub workflow events release early + redis unlink (#11641)
**What** - Prevent event release when a workflow is run as step and finish - Use `unlink` instead of `del` when removing keys from redist to push the execution to async thread
This commit is contained in:
committed by
GitHub
parent
ca6a15717d
commit
c250de7919
@@ -33,7 +33,7 @@ async function deleteKeysByPattern(pattern) {
|
||||
for await (const keys of stream) {
|
||||
if (keys.length) {
|
||||
const pipeline = redis.pipeline()
|
||||
keys.forEach((key) => pipeline.del(key))
|
||||
keys.forEach((key) => pipeline.unlink(key))
|
||||
await pipeline.exec()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user