Skip to content

Commit 8ef12e4

Browse files
utam0kroboquat
authored andcommitted
improve start up time of iws for workspacekit.
1 parent b09cda8 commit 8ef12e4

File tree

1 file changed

+3
-3
lines changed
  • components/ws-daemon/pkg/content

1 file changed

+3
-3
lines changed

components/ws-daemon/pkg/content/hooks.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ func workspaceLifecycleHooks(cfg Config, kubernetesNamespace string, workspaceEx
2626

2727
return map[session.WorkspaceState][]session.WorkspaceLivecycleHook{
2828
session.WorkspaceInitializing: {
29-
hookSetupRemoteStorage(cfg),
3029
hookSetupWorkspaceLocation,
30+
startIWS, // workspacekit is waiting for starting IWS, so it needs to start as soon as possible.
31+
hookSetupRemoteStorage(cfg),
3132
hookInstallQuota(xfs),
32-
startIWS,
3333
},
3434
session.WorkspaceReady: {
35+
startIWS,
3536
hookSetupRemoteStorage(cfg),
3637
hookInstallQuota(xfs),
37-
startIWS,
3838
},
3939
session.WorkspaceDisposed: {
4040
iws.StopServingWorkspace,

0 commit comments

Comments
 (0)