Skip to content
New issue

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

Add execution per shard stats #3179

Conversation

andrewjdawson2016
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Apr 9, 2020

Coverage Status

Coverage decreased (-0.4%) to 68.924% when pulling e4ec9d2 on andrewjdawson2016:addExecutionPerShardStats into 58c0ccf on uber:master.

*progressReport.ShardExecutionCountsDistribution.MaxExecutions < report.Scanned.TotalExecutionsCount {
progressReport.ShardExecutionCountsDistribution.MaxExecutions = &report.Scanned.TotalExecutionsCount
}
progressReport.ShardExecutionCountsDistribution.AverageExecutions = progressReport.TotalExecutionsCount / int64(progressReport.NumberOfShardsFinished)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: AverageExecutions can be calculated only once outside of the per shard loop?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We emit this periodically though. So this is saying "based on the shards we have handled so far" this is the average.

@andrewjdawson2016 andrewjdawson2016 merged commit c842f79 into cadence-workflow:master Apr 9, 2020
@andrewjdawson2016 andrewjdawson2016 deleted the addExecutionPerShardStats branch April 9, 2020 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants