Skip to content

Commit

Permalink
feat: log workflow size before hydrating/dehydrating. Fixes #8976 (#8988
Browse files Browse the repository at this point in the history
)

* feat: log workflow size before hydrating/dehydrating. Fixes #8976

Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>

* feat: added log field to previous log statement

Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>

* feat: moved log for workflow size to hydrator.go

Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>

* feat: move log in Hydrate()

Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>
  • Loading branch information
dpadhiar authored and sarabala1979 committed Jun 23, 2022
1 parent 479763c commit b7c218c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions workflow/hydrator/hydrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ func (h hydrator) Hydrate(wf *wfv1.Workflow) error {
return err
}
h.HydrateWithNodes(wf, offloadedNodes)
log.WithField("Workflow Size", wf.Size()).Info("Workflow hydrated")
}

return nil
}

Expand All @@ -93,6 +95,7 @@ func (h hydrator) Dehydrate(wf *wfv1.Workflow) error {
return nil
}
var err error
log.WithField("Workflow Size", wf.Size()).Info("Workflow to be dehydrated")
if !alwaysOffloadNodeStatus {
err = packer.CompressWorkflowIfNeeded(wf)
if err == nil {
Expand Down

0 comments on commit b7c218c

Please sign in to comment.