3
0

Properly update wIndex on workflow changes

This commit is contained in:
Tomaž Jerman
2024-01-10 11:11:15 +01:00
parent f5a1b22f0d
commit 405ab13643
+2
View File
@@ -543,10 +543,12 @@ func (svc *workflow) updateCache(wf *types.Workflow, runAs intAuth.Identifiable,
svc.muxCache.Lock()
if wf.Executable() {
svc.wIndex[wf.Handle] = wf.ID
svc.cache[wf.ID] = &wfCacheItem{g: g, wf: wf, runAs: runAs}
} else {
// remove deleted
delete(svc.cache, wf.ID)
delete(svc.wIndex, wf.Handle)
}
return