ignore invocation of worker process if already running
[websub-hub] / src / manager.js
index d7a07f117b9eae96aebb808382625d237409732f..fddc8e45ae6f272a346c2131a05d909c190d03d9 100644 (file)
@@ -666,7 +666,9 @@ class Manager {
     this.logger.debug(_scope, 'called', { ctx });
 
     // N.B. no await on this
-    this.communication.worker.process();
+    this.communication.worker.process().catch((e) => {
+      this.logger.error(_scope, 'failed', { error: e, ctx });
+    });
 
     res.end();
     this.logger.info(_scope, 'invoked worker process', { ctx });