Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
makemetricstriggerperiodic (#3384)
Browse files Browse the repository at this point in the history
  • Loading branch information
huijunwu committed Oct 29, 2019
1 parent c27d2c0 commit c51faf8
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,10 @@ public HealthManagerMetrics(int metricsMgrPort) throws IOException {
int interval = (int) systemConfig.getHeronMetricsExportInterval().getSeconds();


looper.registerTimerEvent(Duration.ofSeconds(interval), new Runnable() {
looper.registerPeriodicEvent(Duration.ofSeconds(interval), new Runnable() {
@Override
public void run() {
sendMetrics();
// next timer task
if (looper != null) {
looper.registerTimerEvent(Duration.ofSeconds(interval), new Runnable() {
@Override
public void run() {
sendMetrics();
}
});
}
}
});
}
Expand Down

0 comments on commit c51faf8

Please sign in to comment.