Interface AgentWorkspacesManager
- All Known Implementing Classes:
RemoteAgentWorkspaceManagerImpl
@Internal
public interface AgentWorkspacesManager
Managing of agent workspaces.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerWorkspace
(@NotNull Key key) Register workspace as being in use.void
Search for workspaces related to deleted jobs & environments.void
unregisterWorkspace
(@NotNull Key key) Mark workspace as unused and to be deleted in the nextscanAndRemoveUnusedWorkspaces()
.
-
Method Details
-
scanAndRemoveUnusedWorkspaces
void scanAndRemoveUnusedWorkspaces()Search for workspaces related to deleted jobs & environments. If workspace has not been used for the last 24h (see:registerWorkspace(Key)
, contact the server and check if the corresponding object still exists. After that, remove workspaces that are no longer used. -
registerWorkspace
Register workspace as being in use. It will be skipped duringscanAndRemoveUnusedWorkspaces()
for the next 24h. -
unregisterWorkspace
Mark workspace as unused and to be deleted in the nextscanAndRemoveUnusedWorkspaces()
.
-