Skip to content

Commit c997daf

Browse files
committed
[ws-manager] When a workspace times out, log the expected timeout instead of the actual time spent
1 parent f7b2e37 commit c997daf

10 files changed

+10
-10
lines changed

components/ws-manager/pkg/manager/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ func (m *Manager) isWorkspaceTimedOut(wso workspaceObjects) (reason string, err
709709
return "", nil
710710
}
711711

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

715715
start := wso.Pod.ObjectMeta.CreationTimestamp.Time
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"reason": "workspace timed out after period of inactivity took longer than 01h10m"
2+
"reason": "workspace timed out after period of inactivity (01h10m) took longer than 00h45m"
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"reason": "workspace timed out after workspace interruption took longer than 00h10m"
2+
"reason": "workspace timed out after workspace interruption (00h10m) took longer than 00h05m"
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"reason": "workspace timed out after workspace interruption took longer than 00h10m"
2+
"reason": "workspace timed out after workspace interruption (00h10m) took longer than 00h05m"
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"reason": "workspace timed out after pulling images took longer than 00h50m"
2+
"reason": "workspace timed out after pulling images (00h50m) took longer than 00h45m"
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"reason": "workspace timed out after initialization took longer than 00h50m"
2+
"reason": "workspace timed out after initialization (00h50m) took longer than 00h30m"
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"reason": "workspace timed out after running the headless workspace took longer than 01h40m"
2+
"reason": "workspace timed out after running the headless workspace (01h40m) took longer than 01h30m"
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"reason": "workspace timed out after pulling images took longer than 00h50m"
2+
"reason": "workspace timed out after pulling images (00h50m) took longer than 00h45m"
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"reason": "workspace timed out after after being closed took longer than 00h10m"
2+
"reason": "workspace timed out after after being closed (00h10m) took longer than 00h01m"
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"reason": "workspace timed out after period of inactivity took longer than 01h10m"
2+
"reason": "workspace timed out after period of inactivity (01h10m) took longer than 00h45m"
33
}

0 commit comments

Comments
 (0)