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
Save metrics on close + close only once + check acc registration #296
Conversation
👍 LGTM |
val scioResult = new ScioResult(result, finalState, _accumulators.values.toSeq, pipeline) | ||
val metricsLocation = optionsAs[ScioOptions].getMetricsLocation | ||
if (metricsLocation != null && finalState.isCompleted) { | ||
scioResult.saveMetrics(metricsLocation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only works with blocking runner? Should support non-blocking ones by setting a Future handler?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. initially thought that supporting non blocking one would be an overkill. but it would be most consistent. need to move things around a bit.
Current coverage is 82.20% (diff: 87.50%)@@ master #296 diff @@
==========================================
Files 63 63
Lines 2320 2332 +12
Methods 2058 2058
Messages 0 0
Branches 262 274 +12
==========================================
+ Hits 1905 1917 +12
Misses 415 415
Partials 0 0
|
👍 |
No description provided.