HomePhabricator

(dagit-reload-3) Add subscriber to GraphQL context

Description

(dagit-reload-3) Add subscriber to GraphQL context

Summary:
This diff adds the previously implemented gRPC server watch thread and runs it for each GrpcServerRepositoryLocationHandle.

The DagsterGraphqlContext subscribes to events from the handle, and appropriately reloads the handle on disconnected and error events, as well as pushing the event onto an rx Subject. This observable will be used to form the graphql subscription for server events.

Test Plan: unit

Reviewers: alangenfeld, dgibson

Reviewed By: dgibson

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

Details

Provenance
sashankAuthored on Wed, Nov 11, 8:34 PM
Reviewer
dgibson
Differential Revision
D5107: (dagit-reload-3) Add subscriber to GraphQL context
Parents
R1:442e2a13f778: Allow PipelineRunFilters on multiple statuses
Branches
Unknown
Tags
Unknown