Skip to content

Commit

Permalink
fix: timestamps with millis not properly formatted in dashboard ui
Browse files Browse the repository at this point in the history
  • Loading branch information
starpit committed Apr 7, 2023
1 parent 1b448e1 commit 2f927ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default class Live {
/** Add `line` to our circular buffer `this.lines` */
private pushLine(line: string, metric: WorkerState, timestamp: number) {
const key = line
.replace(/\s*(\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ)\s*/, "{timestamp}")
.replace(/\s*(\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?Z)\s*/, "{timestamp}")
.replace(/pod\/torchx-\S+ /, "") // worker name in torchx
.replace(/pod\/ray-(head|worker)-\S+ /, "") // worker name in ray
.replace(/\* /, "") // wildcard worker name (codeflare)
Expand Down

0 comments on commit 2f927ea

Please sign in to comment.