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
@@ -66,7 +66,7 @@ class RedisCacheService implements ICacheService {
|
||||
return JSON.parse(cached)
|
||||
}
|
||||
} catch (err) {
|
||||
await this.redis.del(cacheKey)
|
||||
await this.redis.unlink(cacheKey)
|
||||
}
|
||||
return null
|
||||
}
|
||||
@@ -92,7 +92,7 @@ class RedisCacheService implements ICacheService {
|
||||
if (keys.length > 0) {
|
||||
const deletePipeline = this.redis.pipeline()
|
||||
for (const key of keys) {
|
||||
deletePipeline.del(key)
|
||||
deletePipeline.unlink(key)
|
||||
}
|
||||
|
||||
await deletePipeline.exec()
|
||||
|
||||
Reference in New Issue
Block a user