We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 214a5cf commit 290625eCopy full SHA for 290625e
app/lib/service/entrypoint/analyzer.dart
@@ -66,6 +66,7 @@ Future _workerMain(EntryMessage message) async {
66
await popularityStorage.start();
67
await downloadCountsBackend.start();
68
await taskBackend.start();
69
+ registerScopeExitCallback(() => taskBackend.stop());
70
71
setupAnalyzerPeriodicTasks();
72
setupSearchPeriodicTasks();
@@ -86,4 +87,8 @@ Future _apiExporterMain(EntryMessage message) async {
86
87
88
89
await apiExporter!.start();
90
+ registerScopeExitCallback(() => apiExporter!.stop());
91
+
92
+ // wait indefinitely
93
+ await Completer().future;
94
}
0 commit comments