Skip to content

Commit

Permalink
Add project/domain to context for metric labeling (flyteorg#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
wild-endeavor authored May 12, 2020
1 parent c38aaa1 commit 185da4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flytepropeller/pkg/controller/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ func (p *Propeller) Handle(ctx context.Context, namespace, name string) error {
wfDeepCopy := w.DeepCopy()
t.Stop()
ctx = contextutils.WithWorkflowID(ctx, wfDeepCopy.GetID())
if execID := wfDeepCopy.GetExecutionID(); execID.WorkflowExecutionIdentifier != nil {
ctx = contextutils.WithProjectDomain(ctx, wfDeepCopy.GetExecutionID().Project, wfDeepCopy.GetExecutionID().Domain)
}
ctx = contextutils.WithResourceVersion(ctx, wfDeepCopy.GetResourceVersion())

maxRetries := uint32(p.cfg.MaxWorkflowRetries)
Expand Down

0 comments on commit 185da4b

Please sign in to comment.