Skip to content

Commit 24180bb

Browse files
committed
Release 4.11.1
1 parent c20f557 commit 24180bb

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 4.11.1
2+
- Improve metric publish handling
3+
14
## 4.11.0
25
- Implement home assistant metrics support
36

docker-compose.prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3.9'
22
services:
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:

lib/src/modules/metrics.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: running_on_dart
2-
version: 4.11.0
2+
version: 4.11.1
33
description: Discord Bot for nyxx development
44
homepage: https://github.com/nyxx-discord/running_on_dart
55
repository: https://github.com/nyxx-discord/running_on_dart

0 commit comments

Comments
 (0)