Skip to content

Commit

Permalink
Avoid pushing metrics twice (#93)
Browse files Browse the repository at this point in the history
The metrics were pushed unconditionally in the execute method and
conditionally in decorators. I think only decorators should submit it.
  • Loading branch information
nijel committed Apr 29, 2020
1 parent ae0555c commit dca648d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cachet_url_monitor/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def execute(self):
cachet server.
"""
self.configuration.evaluate()
self.configuration.push_metrics()
self.configuration.if_trigger_update()

for decorator in self.decorators:
Expand Down

0 comments on commit dca648d

Please sign in to comment.