def resolve_runConfigOrError(self, graphene_info): return get_partition_config( graphene_info, self._external_repository_handle, self._external_partition_set.name, self._partition_name, )
def resolve_runConfigYaml(self, _): run_config = get_partition_config( self._external_repository_handle, self._external_partition_set.name, self._partition_name, ) if run_config is None: # TODO: surface user-facing error here # https://github.com/dagster-io/dagster/issues/2576 return '' return yaml.dump(run_config, default_flow_style=False)