Interface AgentWorkspacesManager
- All Known Implementing Classes:
RemoteAgentWorkspaceManagerImpl
@Internal
public interface AgentWorkspacesManager
Managing of agent workspaces.
-
Method Summary
Modifier and TypeMethodDescriptionvoidregisterWorkspace(@NotNull Key key) Register workspace as being in use.voidSearch for workspaces related to deleted jobs invalid input: '&' environments.voidunregisterWorkspace(@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 invalid input: '&' 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().
-