Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
remove terminated wfs' blob obj from cache
Browse files Browse the repository at this point in the history
Signed-off-by: Babis Kiosidis <[email protected]>
  • Loading branch information
Babis Kiosidis committed Jul 25, 2022
1 parent 356fa33 commit 840c098
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pkg/controller/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ func (p *Propeller) Handle(ctx context.Context, namespace, name string) error {

if w.GetExecutionStatus().IsTerminated() {
if HasCompletedLabel(w) && !HasFinalizer(w) {
// clear blobs from cache for terminated workflows
if w.WorkflowStaticExecutionObj != "" {
p.staticObjStore.Remove(ctx, w)
}
logger.Debugf(ctx, "Workflow is terminated.")
// This workflow had previously completed, let us ignore it
return nil
Expand Down
1 change: 0 additions & 1 deletion pkg/controller/staticobjstore/factory.go

This file was deleted.

0 comments on commit 840c098

Please sign in to comment.