HomeElementl

Pass a workspace into daemon iterations rather than a gRPC server registry

Description

Pass a workspace into daemon iterations rather than a gRPC server registry

Summary:
Right now daemons all require a grpc server registry in their loop - which is problematic because some daemons in the future might not use gRPC at all. Instead, do the following:

  • Add an IWorkspace interface, that classes that let you generate repo locations form origins implement
  • Make RepositoryLocationManager implement IWorkspace (a follow-up diff will likely rename this class to DynamicWorkspace or something similar and move it to live in the workspace module, to distinguish it from Workspace which assumes a single fixed list of origins/locations)
  • Have the daemon callsite take in an IWorkspace instead

Test Plan: Integration

Reviewers: alangenfeld, sashank, prha, johann

Reviewed By: prha

Differential Revision: https://dagster.phacility.com/D7260

Details

Provenance
dgibsonAuthored on Apr 1 2021, 3:03 PM
Reviewer
prha
Differential Revision
D7260: Pass a workspace into daemon iterations rather than a gRPC server registry
Parents
R1:41c4fbda3fb5: docs 0.11.3
Branches
Unknown
Tags
Unknown