Interface AgentWorkspacesManager

All Known Implementing Classes:
RemoteAgentWorkspaceManagerImpl

@Internal public interface AgentWorkspacesManager
Managing of agent workspaces.
  • 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

      void registerWorkspace(@NotNull @NotNull Key key)
      Register workspace as being in use. It will be skipped during scanAndRemoveUnusedWorkspaces() for the next 24h.
    • unregisterWorkspace

      void unregisterWorkspace(@NotNull @NotNull Key key)
      Mark workspace as unused and to be deleted in the next scanAndRemoveUnusedWorkspaces().