We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46585f7 commit a74c44bCopy full SHA for a74c44b
runner.ts
@@ -12,10 +12,6 @@ import * as dotenv from 'dotenv';
12
13
dotenv.config();
14
15
-if (process.env.HAWK_CATCHER_TOKEN) {
16
- HawkCatcher.init(process.env.HAWK_CATCHER_TOKEN);
17
-}
18
-
19
type WorkerConstructor = new () => Worker;
20
21
const BEGINNING_OF_ARGS = 2;
@@ -27,6 +23,18 @@ const BEGINNING_OF_ARGS = 2;
27
23
*/
28
24
const workerNames = process.argv.slice(BEGINNING_OF_ARGS);
29
25
26
+/**
+ * Initialize HawkCatcher
+*/
+if (process.env.HAWK_CATCHER_TOKEN) {
30
+ HawkCatcher.init({
31
+ token: process.env.HAWK_CATCHER_TOKEN,
32
+ context: {
33
+ workerTypes: workerNames.join(","),
34
+ }
35
+ });
36
+}
37
+
38
/**
39
* Workers dispatcher.
40
* Load, run and finish workers.
0 commit comments