Skip to content

Introduce a worker dispatcher abstraction to decouple ML job submission from Modal #62

Description

@masa-57

Summary

ML job dispatch is still hard-wired to Modal.

Evidence

  • directly imports , hardcodes the app/function names, and is called by the API layer.
  • There is no protocol or dispatcher abstraction equivalent to the storage backend abstraction.

Why this matters

This is the main portability gap for self-hosting or alternative worker backends.

Suggested direction

  • Define a worker-dispatch protocol with implementations for Modal and local/dev execution
  • Move provider-specific naming and spawn logic behind that interface
  • Keep job tracking semantics unchanged for API callers

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureArchitecture or refactor workenhancementNew feature or requestpriority:highImportant to address soon

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions