Differential D6164 Diff 30381 python_modules/dagster-graphql/dagster_graphql/schema/pipelines/pipeline_ref.py
Changeset View
Changeset View
Standalone View
Standalone View
python_modules/dagster-graphql/dagster_graphql/schema/pipelines/pipeline_ref.py
- This file was added.
import graphene | |||||
class PipelineReference(graphene.Interface): | |||||
"""This interface supports the case where we can look up a pipeline successfully in the | |||||
repository available to the DagsterInstance/graphql context, as well as the case where we know | |||||
that a pipeline exists/existed thanks to materialized data such as logs and run metadata, but | |||||
where we can't look the concrete pipeline up.""" | |||||
name = graphene.NonNull(graphene.String) | |||||
solidSelection = graphene.List(graphene.NonNull(graphene.String)) | |||||
class UnknownPipeline(graphene.ObjectType): | |||||
class Meta: | |||||
interfaces = (PipelineReference,) | |||||
name = graphene.NonNull(graphene.String) | |||||
solidSelection = graphene.List(graphene.NonNull(graphene.String)) |