Skip to content

Commit

Permalink
add another worker tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
vish9812 committed Dec 11, 2023
1 parent 4853ea2 commit 38947f6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/models/logData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class LogData {
Error: "Error",
plugin_id: "plugin_id",
worker: "worker",
workername: "workername",
scheduler_name: "scheduler_name",
status_code: "status_code",
status: "status",
Expand Down Expand Up @@ -179,7 +180,11 @@ class LogData {
}

private static jobKeySelector(log: JSONLog): string | undefined {
return log[LogData.logKeys.scheduler_name] || log[LogData.logKeys.worker];
return (
log[LogData.logKeys.scheduler_name] ||
log[LogData.logKeys.worker] ||
log[LogData.logKeys.workername]
);
}

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

0 comments on commit 38947f6

Please sign in to comment.