We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The streak length is always reported to be 0, but I can see from the logs that its actually non-zero.
The metric should accurately report streak length.
Deploy flytepropeller and look at the flyte:propeller:all:round:streak_length_unlabeled metric. It will always report 0.
flyte:propeller:all:round:streak_length_unlabeled
Code looks like this:
streak := 0 defer p.metrics.StreakLength.Add(ctx, float64(streak)) maxLength := p.cfg.MaxStreakLength if maxLength <= 0 { maxLength = 1 } for streak = 0; streak < maxLength; streak++ { w, err = p.streak(ctx, w, wfClosureCrdFields) if err != nil { return err } else if w == nil { break } logger.Infof(ctx, "FastFollow Enabled. Detected State change, we will try another round. StreakLength [%d]", streak) } logger.Infof(ctx, "Streak ended at [%d]/Max: [%d]", streak, maxLength) return nil }
The problem is that defer evaluates float64(streak) = 0 immediately and just waits until the end to report a zero. I can make a PR to fix this.
defer
float64(streak) = 0
No response
The text was updated successfully, but these errors were encountered:
It seems like you've got this under control, if you want help or have specific questions, let me know what I can do for you!
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
The streak length is always reported to be 0, but I can see from the logs that its actually non-zero.
Expected behavior
The metric should accurately report streak length.
Additional context to reproduce
Deploy flytepropeller and look at the
flyte:propeller:all:round:streak_length_unlabeled
metric. It will always report 0.Root cause
Code looks like this:
The problem is that
defer
evaluatesfloat64(streak) = 0
immediately and just waits until the end to report a zero. I can make a PR to fix this.Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: