Skip to content

Support multiple workspace types per scheduler #590

Open
@d4l3k

Description

@d4l3k

Description

Currently a scheduler is tied to a specific image type. Some schedulers such as LSF (and Slurm) support multiple different types of images. Ideally we could allow swapping in multiple different workspace backends to enable this in a more easy to use way.

Detailed Proposal

  1. Add some new syntax to the --workspace entrypoint to allow specifying different types of workspaces --workspace=docker:. or perhaps with a --workspace-type docker.

  2. Change the Workspace interaction with the schedulers to allow for setting more than one available workspace type per scheduler.

class FooScheduler(Scheduler):
    WORKSPACES: Iterable[Workspace] = (DockerWorkspace, DirWorkspace)
  1. Update runner to be aware of the new workspace selectors

Alternatives

Additional context/links

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmodule: runnerissues related to the torchx.runner and torchx.scheduler modules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions