Skip to content

Commit 38947f6

Browse files
committed
add another worker tracker
1 parent 4853ea2 commit 38947f6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/models/logData.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class LogData {
6060
Error: "Error",
6161
plugin_id: "plugin_id",
6262
worker: "worker",
63+
workername: "workername",
6364
scheduler_name: "scheduler_name",
6465
status_code: "status_code",
6566
status: "status",
@@ -179,7 +180,11 @@ class LogData {
179180
}
180181

181182
private static jobKeySelector(log: JSONLog): string | undefined {
182-
return log[LogData.logKeys.scheduler_name] || log[LogData.logKeys.worker];
183+
return (
184+
log[LogData.logKeys.scheduler_name] ||
185+
log[LogData.logKeys.worker] ||
186+
log[LogData.logKeys.workername]
187+
);
183188
}
184189

185190
private static pluginKeySelector(log: JSONLog): string | undefined {

0 commit comments

Comments
 (0)