File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed
Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1+ ## 4.11.1
2+ - Improve metric publish handling
3+
14## 4.11.0
25- Implement home assistant metrics support
36
Original file line number Diff line number Diff line change 11version : ' 3.9'
22services :
33 running_on_dart :
4- image : ghcr.io/nyxx-discord/running_on_dart:4.11.0
4+ image : ghcr.io/nyxx-discord/running_on_dart:4.11.1
55 container_name : running_on_dart
66 restart : unless-stopped
77 ports :
Original file line number Diff line number Diff line change @@ -114,14 +114,17 @@ class MetricsModule implements RequiresInitialization {
114114 Future <void > _onConnected () async {
115115 _logger.info ("Connected. Starting processes..." );
116116
117+ ProcessSignal .sigint.watch ().listen (close);
118+ ProcessSignal .sigterm.watch ().listen (close);
119+
117120 publishAvailability ();
121+ await Future .delayed (Duration (milliseconds: 200 ));
122+
118123 publishConfig ();
124+ await Future .delayed (Duration (milliseconds: 200 ));
119125
120126 publishOneTimeMetrics ();
121127
122- ProcessSignal .sigint.watch ().listen (close);
123- ProcessSignal .sigterm.watch ().listen (close);
124-
125128 Timer .periodic (Duration (seconds: 60 ), publishState);
126129 }
127130
Original file line number Diff line number Diff line change 11name : running_on_dart
2- version : 4.11.0
2+ version : 4.11.1
33description : Discord Bot for nyxx development
44homepage : https://github.com/nyxx-discord/running_on_dart
55repository : https://github.com/nyxx-discord/running_on_dart
You can’t perform that action at this time.
0 commit comments