You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/ws-daemon/pkg/dispatch/dispatch.go
+60-4Lines changed: 60 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,9 @@ type workspaceState struct {
86
86
Context context.Context
87
87
Cancel context.CancelFunc
88
88
Workspace*Workspace
89
+
90
+
// this WaitGroup keeps track of when each handler is finished. It's only relied upon in DisposeWorkspace() to determine when work on a given instanceID has commenced.
// we haven't seen this pod before - add it, and wait for the container
192
233
owi:=wsk8s.GetOWIFromObject(&newPod.ObjectMeta)
193
-
d.ctxs[workspaceInstanceID] =&workspaceState{
234
+
s:=&workspaceState{
194
235
WorkspaceAdded: false,
195
236
Workspace: &Workspace{
196
237
InstanceID: workspaceInstanceID,
197
238
WorkspaceID: workspaceID,
198
239
Pod: newPod,
199
240
},
200
241
}
242
+
d.ctxs[workspaceInstanceID] =s
201
243
202
-
// Important!!!!: ideally this timeout must be equal to ws-manager https://github.com/gitpod-io/gitpod/blob/main/components/ws-manager/pkg/manager/manager.go#L171
// Important!!!!: ideally this timeout must be equal to ws-manager https://github.com/gitpod-io/gitpod/blob/main/components/ws-manager/pkg/manager/manager.go#L171
0 commit comments