@Internal
public interface AgentWorkspacesManager
| Modifier and Type | Method and Description |
|---|---|
void |
registerWorkspace(@NotNull Key key)
Register workspace as being in use.
|
void |
scanAndRemoveUnusedWorkspaces()
Search for workspaces related to deleted jobs & environments.
|
void |
unregisterWorkspace(@NotNull Key key)
Mark workspace as unused and to be deleted in the next
scanAndRemoveUnusedWorkspaces(). |
void scanAndRemoveUnusedWorkspaces()
registerWorkspace(Key), contact the server and check if the corresponding object still exists.
After that, remove workspaces that are no longer used.void registerWorkspace(@NotNull
@NotNull Key key)
scanAndRemoveUnusedWorkspaces() for the next 24h.void unregisterWorkspace(@NotNull
@NotNull Key key)
scanAndRemoveUnusedWorkspaces().Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.