Skip to content

Commit

Permalink
[ws-manager] When a workspace times out, log the expected timeout ins…
Browse files Browse the repository at this point in the history
…tead of the actual time spent
  • Loading branch information
jankeromnes committed May 20, 2021
1 parent dd0826c commit 35a6e02
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion components/ws-manager/pkg/manager/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ func (m *Manager) isWorkspaceTimedOut(wso workspaceObjects) (reason string, err
return "", nil
}

return fmt.Sprintf("workspace timed out after %s took longer than %s", activity, formatDuration(inactivity)), nil
return fmt.Sprintf("workspace timed out after %s (%s) took longer than %s", activity, formatDuration(inactivity), formatDuration(td)), nil
}

start := wso.Pod.ObjectMeta.CreationTimestamp.Time
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"reason": "workspace timed out after period of inactivity took longer than 01h10m"
"reason": "workspace timed out after period of inactivity (01h10m) took longer than 00h45m"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"reason": "workspace timed out after workspace interruption took longer than 00h10m"
"reason": "workspace timed out after workspace interruption (00h10m) took longer than 00h05m"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"reason": "workspace timed out after workspace interruption took longer than 00h10m"
"reason": "workspace timed out after workspace interruption (00h10m) took longer than 00h05m"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"reason": "workspace timed out after pulling images took longer than 00h50m"
"reason": "workspace timed out after pulling images (00h50m) took longer than 00h45m"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"reason": "workspace timed out after initialization took longer than 00h50m"
"reason": "workspace timed out after initialization (00h50m) took longer than 00h30m"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"reason": "workspace timed out after running the headless workspace took longer than 01h40m"
"reason": "workspace timed out after running the headless workspace (01h40m) took longer than 01h30m"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"reason": "workspace timed out after pulling images took longer than 00h50m"
"reason": "workspace timed out after pulling images (00h50m) took longer than 00h45m"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"reason": "workspace timed out after after being closed took longer than 00h10m"
"reason": "workspace timed out after after being closed (00h10m) took longer than 00h01m"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"reason": "workspace timed out after period of inactivity took longer than 01h10m"
"reason": "workspace timed out after period of inactivity (01h10m) took longer than 00h45m"
}

0 comments on commit 35a6e02

Please sign in to comment.