repo
stringclasses
454 values
file_path
stringlengths
5
201
extension
stringclasses
1 value
content
stringlengths
8
509k
num_lines
int64
3
16.9k
size_bytes
int64
8
511k
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_assets.py
.py
import datetime import logging from collections import defaultdict from collections.abc import Sequence from typing import TYPE_CHECKING, AbstractSet, Mapping, Union, cast # noqa: UP035 import dagster_shared.seven as seven from dagster import ( AssetKey, DagsterEventType, DagsterRun, _check as check, ...
644
23,847
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_instigators.py
.py
from typing import TYPE_CHECKING, Union import dagster._check as check from dagster._core.definitions.instigation_logger import get_instigation_log_records from dagster._core.definitions.selector import InstigatorSelector from dagster._core.log_manager import LOG_RECORD_METADATA_ATTR from dagster._core.remote_represen...
109
3,981
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_env_vars.py
.py
from typing import TYPE_CHECKING import dagster._check as check from dagster._core.definitions.selector import RepositorySelector from graphene import ResolveInfo from dagster_graphql.schema.env_vars import ( GrapheneEnvVarWithConsumers, GrapheneEnvVarWithConsumersList, ) if TYPE_CHECKING: from dagster._...
36
1,219
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/run_config_schema.py
.py
from collections.abc import Mapping from typing import TYPE_CHECKING import dagster._check as check from dagster._config import validate_config_from_snap from dagster._core.remote_representation.external_data import DEFAULT_MODE_NAME from dagster._core.remote_representation.represented import RepresentedJob from dags...
82
3,253
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_asset_condition_evaluations.py
.py
from collections.abc import Mapping, Sequence from typing import TYPE_CHECKING, Any, cast import dagster._check as check from dagster._core.definitions.asset_key import AssetCheckKey, AssetJobKey, AssetKey, EntityKey from dagster._core.scheduler.instigation import AutoMaterializeAssetEvaluationRecord from dagster_gra...
174
6,369
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_component_types.py
.py
import json import logging from typing import TYPE_CHECKING, Any from dagster.components.core.load_defs import get_plugin_component_jsons_for_code_location if TYPE_CHECKING: from dagster_graphql.schema.component_types import ( GrapheneComponentFormSchema, GrapheneComponentTypeInfo, Graphen...
100
3,838
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_partition_subsets.py
.py
import asyncio from dagster._core.definitions.asset_health.asset_materialization_health import ( AssetMaterializationHealthState, ) from dagster._core.definitions.asset_key import AssetKey from dagster._core.definitions.partitions.subset import PartitionsSubset from dagster._core.instance.types import CachingDynam...
69
2,419
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_pipelines.py
.py
from typing import TYPE_CHECKING, Union import dagster._check as check from dagster._core.instance import DagsterInstance from dagster._core.storage.dagster_run import DagsterRun from dagster_graphql.implementation.external import get_full_remote_job_or_raise from dagster_graphql.implementation.utils import JobSubset...
87
3,501
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_solids.py
.py
from collections import OrderedDict, defaultdict import dagster._check as check from dagster._core.remote_representation.external import RemoteRepository from dagster_graphql.implementation.utils import GraphSelector def get_solid(repo, name): return get_used_solid_map(repo)[name] def get_solids(repo): re...
80
3,006
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/loader.py
.py
from collections import defaultdict from collections.abc import Sequence from enum import Enum from typing import Any from dagster import ( DagsterInstance, _check as check, ) from dagster._core.remote_representation.external import RemoteRepository from dagster._core.scheduler.instigation import InstigatorSta...
142
6,463
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_runs.py
.py
import datetime from collections import defaultdict from collections.abc import Mapping, Sequence from typing import TYPE_CHECKING, AbstractSet, Any, Union # noqa: UP035 from dagster import ( AssetKey, _check as check, ) from dagster._core.definitions.selector import JobSubsetSelector from dagster._core.error...
709
27,908
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_logs.py
.py
from collections.abc import Sequence from typing import TYPE_CHECKING from dagster_graphql.schema.util import ResolveInfo if TYPE_CHECKING: from dagster_graphql.schema.logs.compute_logs import GrapheneCapturedLogsMetadata def get_captured_log_metadata( graphene_info: ResolveInfo, log_key: Sequence[str] ) ->...
22
789
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_schedules.py
.py
import time from collections.abc import Sequence from typing import TYPE_CHECKING, Optional import dagster._check as check from dagster._core.definitions.run_request import InstigatorType from dagster._core.definitions.selector import ( JobSubsetSelector, RepositorySelector, ScheduleSelector, ) from dagste...
226
8,270
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_partition_sets.py
.py
from collections import defaultdict from collections.abc import Sequence from typing import TYPE_CHECKING, AbstractSet, Union # noqa: UP035 import dagster._check as check from dagster._core.definitions.asset_key import AssetKey from dagster._core.definitions.selector import RepositorySelector from dagster._core.error...
320
11,441
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/events.py
.py
from collections.abc import Iterator, Mapping, Sequence from math import isnan from typing import TYPE_CHECKING, Any, cast, no_type_check import dagster._check as check import dagster_shared.seven as seven from dagster import ( BoolMetadataValue, DagsterAssetMetadataValue, DagsterJobMetadataValue, Floa...
570
23,838
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/execution/run_lifecycle.py
.py
from collections.abc import Sequence from typing import cast import dagster._check as check from dagster._core.errors import DagsterRunNotFoundError from dagster._core.execution.plan.state import KnownExecutionState from dagster._core.instance import DagsterInstance from dagster._core.remote_representation.external im...
119
4,785
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/execution/launch_execution.py
.py
from collections.abc import Mapping from typing import TYPE_CHECKING, Any import dagster._check as check from dagster._core.definitions.selector import JobSubsetSelector from dagster._core.execution.plan.resume_retry import ReexecutionStrategy from dagster._core.storage.dagster_run import DagsterRun, RunsFilter from d...
128
5,144
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/execution/__init__.py
.py
import asyncio import os import sys from collections.abc import AsyncIterator, Mapping, Sequence from typing import TYPE_CHECKING, Any, List, Optional, Tuple, Union # noqa: F401, UP035 # re-exports import dagster._check as check from dagster._annotations import deprecated from dagster._core.definitions.asset_checks.a...
450
16,415
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/execution/dynamic_partitions.py
.py
from collections.abc import Sequence from typing import TYPE_CHECKING from dagster._core.definitions.selector import RepositorySelector from dagster._core.workspace.permissions import Permissions from dagster_graphql.implementation.utils import ( UserFacingGraphQLError, assert_permission_for_location, ) from ...
133
4,985
dagster
python_modules/dagster-graphql/dagster_graphql/implementation/execution/backfill.py
.py
from collections.abc import Sequence from typing import TYPE_CHECKING, Union import dagster._check as check from dagster._core.definitions.selector import ( JobSelector, PartitionsByAssetSelector, RepositorySelector, ) from dagster._core.definitions.utils import check_valid_title from dagster._core.errors ...
420
17,824
dagster
python_modules/dagster-graphql/dagster_graphql/schema/asset_checks.py
.py
from collections.abc import Sequence from enum import Enum from typing import TYPE_CHECKING, Optional, TypeAlias, Union, cast import dagster._check as check import graphene from dagster import EventLogEntry from dagster._core.definitions.asset_checks.asset_check_evaluation import ( AssetCheckEvaluation, AssetC...
543
20,664
dagster
python_modules/dagster-graphql/dagster_graphql/schema/table.py
.py
from collections.abc import Sequence from typing import TYPE_CHECKING import graphene from dagster._core.definitions.metadata.table import TableColumn from dagster_graphql.schema.entity_key import GrapheneAssetKey from dagster_graphql.schema.tags import GrapheneDefinitionTag from dagster_graphql.schema.util import no...
96
2,840
dagster
python_modules/dagster-graphql/dagster_graphql/schema/errors.py
.py
import dagster._check as check import graphene from dagster._core.definitions.events import AssetKey from dagster._utils.error import SerializableErrorInfo from dagster_graphql.schema.util import ResolveInfo, non_null_list class GrapheneError(graphene.Interface): message = graphene.String(required=True) cla...
568
19,331
dagster
python_modules/dagster-graphql/dagster_graphql/schema/instigators.py
.py
import graphene from dagster_graphql.schema.schedules import GrapheneSchedule from dagster_graphql.schema.sensors import GrapheneSensor class GrapheneInstigator(graphene.Union): class Meta: types = (GrapheneSchedule, GrapheneSensor) name = "Instigator"
11
276
dagster
python_modules/dagster-graphql/dagster_graphql/schema/asset_health.py
.py
import asyncio import graphene from dagster._core.definitions.asset_health.asset_check_health import ( AssetHealthCheckDegradedMetadata, AssetHealthCheckMetadata, AssetHealthCheckUnknownMetadata, AssetHealthCheckWarningMetadata, get_asset_check_status_and_metadata, ) from dagster._core.definitions....
314
13,651
dagster
python_modules/dagster-graphql/dagster_graphql/schema/repository_origin.py
.py
from collections.abc import Sequence import dagster._check as check import graphene from dagster._core.remote_origin import RemoteRepositoryOrigin from dagster_graphql.schema.util import ResolveInfo, non_null_list class GrapheneRepositoryMetadata(graphene.ObjectType): key = graphene.NonNull(graphene.String) ...
49
1,677
dagster
python_modules/dagster-graphql/dagster_graphql/schema/config_types.py
.py
from typing import AbstractSet, Callable, Union # noqa: UP035 import dagster._check as check import graphene from dagster._config import ConfigTypeKind from dagster._core.snap import ConfigFieldSnap, ConfigTypeSnap from dagster_graphql.schema.util import ResolveInfo, non_null_list # Constant for masking secret valu...
455
15,925
dagster
python_modules/dagster-graphql/dagster_graphql/schema/env_vars.py
.py
from collections.abc import Sequence import graphene from dagster._core.remote_representation.external_data import EnvVarConsumer from dagster_graphql.schema.errors import GraphenePythonError from dagster_graphql.schema.util import non_null_list class GrapheneEnvVarConsumerType(graphene.Enum): RESOURCE = "RESOU...
61
1,830
dagster
python_modules/dagster-graphql/dagster_graphql/schema/metadata.py
.py
import graphene from dagster_graphql.schema.entity_key import GrapheneAssetKey from dagster_graphql.schema.table import ( GrapheneTable, GrapheneTableColumnLineageEntry, GrapheneTableSchema, ) from dagster_graphql.schema.util import non_null_list class GrapheneMetadataItemDefinition(graphene.ObjectType):...
247
6,746
dagster
python_modules/dagster-graphql/dagster_graphql/schema/partition_sets.py
.py
from collections.abc import Sequence from typing import TYPE_CHECKING, AbstractSet, cast # noqa: UP035 import dagster._check as check import graphene from dagster._core.definitions.asset_key import AssetKey from dagster._core.definitions.partitions.definition import MultiPartitionsDefinition from dagster._core.defini...
706
25,357
dagster
python_modules/dagster-graphql/dagster_graphql/schema/freshness.py
.py
import graphene from dagster._core.definitions.freshness import ( CronFreshnessPolicy, FreshnessPolicy, TimeWindowFreshnessPolicy, ) from dagster_graphql.schema.asset_health import ( GrapheneAssetHealthFreshnessMeta, GrapheneAssetHealthStatus, ) class GrapheneFreshnessStatusInfo(graphene.ObjectTy...
79
2,871
dagster
python_modules/dagster-graphql/dagster_graphql/schema/entity_key.py
.py
import graphene from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey from dagster._core.definitions.asset_key import AssetJobKey, AssetKey, EntityKey from dagster_graphql.schema.util import non_null_list class GrapheneAssetKey(graphene.ObjectType): path = non_null_list(graphene.Strin...
65
2,080
dagster
python_modules/dagster-graphql/dagster_graphql/schema/used_solid.py
.py
import graphene from dagster_graphql.schema.pipelines.pipeline import GraphenePipeline from dagster_graphql.schema.solids import GrapheneISolidDefinition, GrapheneSolidHandle from dagster_graphql.schema.util import non_null_list class GrapheneNodeInvocationSite(graphene.ObjectType): class Meta: descripti...
24
810
dagster
python_modules/dagster-graphql/dagster_graphql/schema/config_type_or_error.py
.py
import graphene from dagster_graphql.schema.config_types import ( GrapheneCompositeConfigType, GrapheneEnumConfigType, GrapheneRegularConfigType, ) from dagster_graphql.schema.errors import ( GrapheneConfigTypeNotFoundError, GraphenePipelineNotFoundError, GraphenePythonError, ) class Graphene...
26
671
dagster
python_modules/dagster-graphql/dagster_graphql/schema/runs.py
.py
import sys from collections.abc import Mapping import dagster._check as check import graphene import yaml from dagster._core.storage.dagster_run import RunsFilter from dagster._utils.error import serializable_error_info_from_exc_info from dagster_shared.yaml_utils import load_run_config_yaml from graphene.types.generi...
238
7,070
dagster
python_modules/dagster-graphql/dagster_graphql/schema/util.py
.py
from typing import cast import graphene from dagster._core.storage.compute_log_manager import ComputeLogManager from dagster._core.workspace.context import WorkspaceRequestContext class ResolveInfo(graphene.ResolveInfo): @property def context(self) -> WorkspaceRequestContext: # ty: ignore[invalid-named-tupl...
20
638
dagster
python_modules/dagster-graphql/dagster_graphql/schema/__init__.py
.py
import graphene from dagster_graphql.schema.roots.mutation import GrapheneMutation from dagster_graphql.schema.roots.query import GrapheneQuery from dagster_graphql.schema.roots.subscription import GrapheneSubscription def types(): from dagster_graphql.schema.app_managed_components import types as app_managed_co...
89
3,760
dagster
python_modules/dagster-graphql/dagster_graphql/schema/owners.py
.py
import graphene from dagster._check import invariant from dagster._core.utils import is_valid_email class GrapheneUserDefinitionOwner(graphene.ObjectType): class Meta: name = "UserDefinitionOwner" email = graphene.NonNull(graphene.String) class GrapheneTeamDefinitionOwner(graphene.ObjectType): ...
63
1,657
dagster
python_modules/dagster-graphql/dagster_graphql/schema/external.py
.py
import asyncio import os from typing import TYPE_CHECKING import graphene from dagster import _check as check from dagster._core.definitions.assets.graph.asset_graph_differ import AssetGraphDiffer from dagster._core.definitions.sensor_definition import SensorType from dagster._core.errors import DagsterInvariantViolat...
683
24,758
dagster
python_modules/dagster-graphql/dagster_graphql/schema/component_types.py
.py
import graphene from graphene.types.generic import GenericScalar from dagster_graphql.schema.errors import GraphenePythonError, GrapheneRepositoryLocationNotFound from dagster_graphql.schema.util import non_null_list class GrapheneJsonSchema(GenericScalar, graphene.Scalar): """A JSON Schema document, returned as...
120
4,101
dagster
python_modules/dagster-graphql/dagster_graphql/schema/asset_graph.py
.py
import os from collections.abc import Mapping, Sequence from typing import TYPE_CHECKING, Any, Union, cast import graphene from dagster import ( AssetKey, _check as check, ) from dagster._core.definitions.asset_health.asset_freshness_health import ( get_freshness_status_and_metadata, ) from dagster._core.d...
1,653
65,733
dagster
python_modules/dagster-graphql/dagster_graphql/schema/run_config.py
.py
from typing import TYPE_CHECKING, Any import dagster._check as check import graphene from dagster._core.remote_representation.external_data import DEFAULT_MODE_NAME from dagster._core.remote_representation.represented import RepresentedJob from dagster._core.snap.snap_to_yaml import default_values_yaml_from_type_snap ...
127
5,256
dagster
python_modules/dagster-graphql/dagster_graphql/schema/freshness_policy.py
.py
import dagster._check as check import graphene from dagster._core.definitions.freshness_policy import LegacyFreshnessPolicy from dagster._time import get_current_datetime class GrapheneAssetFreshnessInfo(graphene.ObjectType): # How old is the current data currentLagMinutes = graphene.Field(graphene.Float) ...
43
1,718
dagster
python_modules/dagster-graphql/dagster_graphql/schema/instigation.py
.py
import sys import dagster._check as check import graphene from dagster import RunRecord from dagster._core.definitions.dynamic_partitions_request import ( AddDynamicPartitionsRequest, DeleteDynamicPartitionsRequest, ) from dagster._core.definitions.run_request import RunRequest from dagster._core.definitions.s...
836
31,775
dagster
python_modules/dagster-graphql/dagster_graphql/schema/partition_keys.py
.py
import graphene from dagster_graphql.schema.errors import GrapheneError from dagster_graphql.schema.util import non_null_list class GraphenePartitionKeyConnection(graphene.ObjectType): results = non_null_list(graphene.String) cursor = graphene.NonNull(graphene.String) hasMore = graphene.NonNull(graphene....
35
960
dagster
python_modules/dagster-graphql/dagster_graphql/schema/sensors.py
.py
from collections.abc import Sequence import dagster._check as check import graphene from dagster import DefaultSensorStatus from dagster._core.definitions.selector import SensorSelector from dagster._core.definitions.sensor_definition import SensorType from dagster._core.errors import DagsterInvariantViolationError fr...
344
12,842
dagster
python_modules/dagster-graphql/dagster_graphql/schema/instance.py
.py
import sys from typing import TYPE_CHECKING import dagster._check as check import graphene import yaml from dagster._core.instance import DagsterInstance from dagster._core.instance.config import PoolConfig from dagster._core.launcher.base import RunLauncher from dagster._core.storage.event_log.sql_event_log import Sq...
371
14,261
dagster
python_modules/dagster-graphql/dagster_graphql/schema/sensor_dry_run.py
.py
from collections.abc import Mapping from typing import TYPE_CHECKING, Any import graphene from dagster._core.definitions.selector import SensorSelector from dagster._core.workspace.permissions import Permissions from dagster_graphql.implementation.utils import ( assert_permission_for_sensor, capture_error, ...
56
1,808
dagster
python_modules/dagster-graphql/dagster_graphql/schema/auto_materialize_policy.py
.py
import dagster._check as check import graphene from dagster._core.definitions.auto_materialize_policy import ( AutoMaterializePolicy, AutoMaterializePolicyType, ) from dagster._core.definitions.auto_materialize_rule_impls import ( AutoMaterializeDecisionType, DiscardOnMaxMaterializationsExceededRule, ) ...
66
2,614
dagster
python_modules/dagster-graphql/dagster_graphql/schema/dagster_types.py
.py
from collections.abc import Callable from typing import TYPE_CHECKING, Any, TypeAlias, Union import graphene from dagster._config.snap import ConfigTypeSnap from dagster._core.types.dagster_type import DagsterTypeKind from dagster_graphql.implementation.events import iterate_metadata_entries from dagster_graphql.sche...
149
4,803
dagster
python_modules/dagster-graphql/dagster_graphql/schema/automation_condition.py
.py
import graphene from dagster._core.definitions.declarative_automation.serialized_objects import ( AutomationConditionSnapshot, get_expanded_label, ) from dagster._core.remote_representation.external_data import AssetNodeSnap from dagster_graphql.schema.util import non_null_list def get_ac_snapshot(snap: Asse...
41
1,519
dagster
python_modules/dagster-graphql/dagster_graphql/schema/permissions.py
.py
import dagster._check as check import graphene from dagster._core.workspace.permissions import PermissionResult class GraphenePermission(graphene.ObjectType): class Meta: name = "Permission" permission = graphene.NonNull(graphene.String) value = graphene.NonNull(graphene.Boolean) disabledReas...
23
748
dagster
python_modules/dagster-graphql/dagster_graphql/schema/partition_mappings.py
.py
import graphene from dagster._core.definitions.partitions.mapping import PartitionMapping class GraphenePartitionMapping(graphene.ObjectType): className = graphene.NonNull(graphene.String) description = graphene.NonNull(graphene.String) class Meta: name = "PartitionMapping" def __init__( ...
20
530
dagster
python_modules/dagster-graphql/dagster_graphql/schema/backfill.py
.py
import json import logging from collections.abc import Sequence from typing import TYPE_CHECKING, Optional import dagster._check as check import graphene from dagster import AssetKey from dagster._core.definitions.backfill_policy import BackfillPolicy, BackfillPolicyType from dagster._core.definitions.partitions.conte...
759
30,083
dagster
python_modules/dagster-graphql/dagster_graphql/schema/tags.py
.py
import graphene from dagster_graphql.schema.util import non_null_list class GrapheneTagType(graphene.Enum): USER_PROVIDED = "USER_PROVIDED" SYSTEM = "SYSTEM" HIDDEN = "HIDDEN" class Meta: name = "TagType" class GraphenePipelineTag(graphene.ObjectType): key = graphene.NonNull(graphene.S...
63
1,593
dagster
python_modules/dagster-graphql/dagster_graphql/schema/execution.py
.py
import dagster._check as check import graphene from dagster._core.remote_representation.external import RemoteExecutionPlan from dagster._core.snap import ExecutionStepInputSnap, ExecutionStepOutputSnap, ExecutionStepSnap from dagster_graphql.schema.entity_key import GrapheneAssetKey from dagster_graphql.schema.metada...
177
6,347
dagster
python_modules/dagster-graphql/dagster_graphql/schema/asset_condition_evaluations.py
.py
import enum from collections.abc import Sequence import graphene from dagster._core.asset_graph_view.serializable_entity_subset import SerializableEntitySubset from dagster._core.definitions.asset_key import AssetKey from dagster._core.definitions.declarative_automation.operators.since_operator import ( SinceCondi...
391
15,015
dagster
python_modules/dagster-graphql/dagster_graphql/schema/runs_feed.py
.py
import graphene from dagster_graphql.schema.entity_key import GrapheneAssetKey from dagster_graphql.schema.errors import GraphenePythonError from dagster_graphql.schema.util import non_null_list class GrapheneRunsFeedView(graphene.Enum): """Configure how runs and backfills are represented in the feed. ROOTS...
70
2,068
dagster
python_modules/dagster-graphql/dagster_graphql/schema/app_managed_components.py
.py
import graphene from dagster_graphql.schema.errors import GraphenePythonError, GrapheneUnauthorizedError from dagster_graphql.schema.util import non_null_list class GrapheneAppManagedComponent(graphene.ObjectType): """A single app-managed component, persisted in defs state storage. ``attributes`` is the YAM...
190
6,164
dagster
python_modules/dagster-graphql/dagster_graphql/schema/auto_materialize_asset_evaluations.py
.py
from collections.abc import Sequence import graphene from dagster._core.definitions.auto_materialize_rule_evaluation import AutoMaterializeDecisionType from dagster._core.definitions.declarative_automation.legacy.rule_condition import RuleCondition from dagster._core.definitions.declarative_automation.serialized_objec...
271
10,484
dagster
python_modules/dagster-graphql/dagster_graphql/schema/inputs.py
.py
import graphene from dagster._core.definitions.asset_key import AssetKey from dagster._core.events import DagsterEventType from dagster._core.execution.backfill import BulkActionsFilter, BulkActionStatus from dagster._core.storage.dagster_run import DagsterRunStatus, RunsFilter from dagster._time import datetime_from_t...
462
17,032
dagster
python_modules/dagster-graphql/dagster_graphql/schema/schedule_dry_run.py
.py
from collections.abc import Mapping from typing import TYPE_CHECKING, Any import graphene from dagster._core.definitions.selector import ScheduleSelector from dagster._core.workspace.permissions import Permissions from dagster_graphql.implementation.utils import ( assert_permission_for_schedule, capture_error...
62
1,923
dagster
python_modules/dagster-graphql/dagster_graphql/schema/test.py
.py
import asyncio import graphene _STATE = {} class GrapheneTestFields(graphene.ObjectType): class Meta: name = "TestFields" alwaysException = graphene.String() asyncString = graphene.String() def resolve_alwaysException(self, _): raise Exception("as advertised") async def resolv...
28
574
dagster
python_modules/dagster-graphql/dagster_graphql/schema/asset_selections.py
.py
from collections.abc import Sequence from typing import TYPE_CHECKING import graphene from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey from dagster._core.definitions.asset_key import AssetKey from dagster._core.definitions.asset_selection import AssetSelection, CodeLocationAssetSelecti...
92
3,745
dagster
python_modules/dagster-graphql/dagster_graphql/schema/solids.py
.py
from collections.abc import Mapping, Sequence from functools import lru_cache from typing import TYPE_CHECKING, Optional, Union import dagster._check as check import graphene from dagster._core.definitions import NodeHandle from dagster._core.remote_representation.external import RemoteJob from dagster._core.remote_re...
787
30,628
dagster
python_modules/dagster-graphql/dagster_graphql/schema/resources.py
.py
import dagster._check as check import graphene from dagster._core.definitions.selector import ResourceSelector from dagster._core.remote_representation.external import RemoteResource from dagster._core.remote_representation.external_data import ( NestedResourceType, ResourceConfigEnvVarSnap, ResourceJobUsag...
259
9,657
dagster
python_modules/dagster-graphql/dagster_graphql/schema/roots/pipeline.py
.py
import graphene from dagster_graphql.schema.errors import ( GrapheneGraphNotFoundError, GrapheneInvalidSubsetError, GraphenePipelineNotFoundError, GraphenePythonError, ) from dagster_graphql.schema.pipelines.pipeline import GrapheneGraph, GraphenePipeline class GraphenePipelineOrError(graphene.Union)...
31
765
dagster
python_modules/dagster-graphql/dagster_graphql/schema/roots/mutation.py
.py
import json from collections.abc import Sequence import dagster._check as check import graphene from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckSeverity from dagster._core.definitions.events import AssetKey, AssetPartitionWipeRange from dagster._core.definitions.partitions.partition_key_r...
1,253
43,968
dagster
python_modules/dagster-graphql/dagster_graphql/schema/roots/assets.py
.py
import graphene from dagster_graphql.schema.asset_graph import GrapheneAssetNode from dagster_graphql.schema.errors import GrapheneAssetNotFoundError, GraphenePythonError from dagster_graphql.schema.pipelines.pipeline import GrapheneAsset, GrapheneAssetRecord from dagster_graphql.schema.util import non_null_list cla...
50
1,449
dagster
python_modules/dagster-graphql/dagster_graphql/schema/roots/__init__.py
.py
def types(): from dagster_graphql.schema.roots.assets import ( GrapheneAssetConnection, GrapheneAssetOrError, GrapheneAssetsOrError, ) from dagster_graphql.schema.roots.execution_plan import GrapheneExecutionPlanOrError from dagster_graphql.schema.roots.mutation import ( ...
59
2,327
dagster
python_modules/dagster-graphql/dagster_graphql/schema/roots/subscription.py
.py
import graphene from dagster_graphql.implementation.execution import gen_captured_log_data, gen_events_for_run from dagster_graphql.schema.external import ( GrapheneLocationStateChangeSubscription, gen_location_state_changes, ) from dagster_graphql.schema.logs.compute_logs import GrapheneCapturedLogs from dags...
54
2,152
dagster
python_modules/dagster-graphql/dagster_graphql/schema/roots/execution_plan.py
.py
import graphene from dagster_graphql.schema.errors import ( GrapheneInvalidSubsetError, GraphenePipelineNotFoundError, GraphenePythonError, ) from dagster_graphql.schema.execution import GrapheneExecutionPlan from dagster_graphql.schema.pipelines.config import GrapheneRunConfigValidationInvalid class Gra...
22
644
dagster
python_modules/dagster-graphql/dagster_graphql/schema/roots/query.py
.py
from collections.abc import Mapping, Sequence from typing import Any, cast import dagster._check as check import graphene from dagster import AssetCheckKey from dagster._core.definitions.assets.graph.remote_asset_graph import RemoteAssetGraph from dagster._core.definitions.events import AssetKey from dagster._core.def...
1,470
56,061
dagster
python_modules/dagster-graphql/dagster_graphql/schema/schedules/__init__.py
.py
import graphene from dagster._core.definitions.selector import ScheduleSelector from dagster._core.errors import DagsterInvariantViolationError from dagster._core.remote_representation.external import CompoundID from dagster._core.workspace.permissions import Permissions from dagster_graphql.implementation.fetch_sched...
184
6,206
dagster
python_modules/dagster-graphql/dagster_graphql/schema/schedules/ticks.py
.py
import graphene from dagster._core.scheduler.instigation import TickStatus from dagster._core.storage.dagster_run import RunsFilter from dagster_graphql.schema.errors import GraphenePythonError from dagster_graphql.schema.instigation import GrapheneInstigationTickStatus class GrapheneScheduleTickSuccessData(graphene...
55
1,896
dagster
python_modules/dagster-graphql/dagster_graphql/schema/schedules/schedules.py
.py
import time from collections.abc import Sequence import dagster._check as check import graphene from dagster import DefaultScheduleStatus from dagster._core.remote_representation.external import RemoteSchedule from dagster._core.scheduler.instigation import InstigatorState, InstigatorStatus from dagster._time import g...
256
10,362
dagster
python_modules/dagster-graphql/dagster_graphql/schema/logs/compute_logs.py
.py
import graphene from dagster._core.storage.compute_log_manager import CapturedLogData from dagster_graphql.schema.util import non_null_list def from_captured_log_data(log_data: CapturedLogData): """Convert CapturedLogData to GrapheneCapturedLogs. Uses 'replace' error handling for UTF-8 decoding to gracefull...
44
1,479
dagster
python_modules/dagster-graphql/dagster_graphql/schema/logs/log_level.py
.py
import logging import dagster._check as check import graphene class GrapheneLogLevel(graphene.Enum): CRITICAL = "CRITICAL" ERROR = "ERROR" INFO = "INFO" WARNING = "WARNING" DEBUG = "DEBUG" class Meta: name = "LogLevel" @classmethod def from_level(cls, level): check.i...
32
816
dagster
python_modules/dagster-graphql/dagster_graphql/schema/logs/__init__.py
.py
def types(): from dagster_graphql.schema.logs.events import ( GrapheneAssetMaterializationPlannedEvent, GrapheneDisplayableEvent, GrapheneEngineEvent, GrapheneExecutionStepFailureEvent, GrapheneExecutionStepInputEvent, GrapheneExecutionStepOutputEvent, Graphen...
100
3,551
dagster
python_modules/dagster-graphql/dagster_graphql/schema/logs/events.py
.py
from typing import TYPE_CHECKING, Union import dagster._check as check import graphene from dagster._core.definitions import ExpectationResult from dagster._core.definitions.events import ( AssetMaterializationFailureReason, AssetMaterializationFailureType, ) from dagster._core.events import AssetLineageInfo, ...
747
24,981
dagster
python_modules/dagster-graphql/dagster_graphql/schema/pipelines/pipeline.py
.py
from collections.abc import Sequence from typing import TYPE_CHECKING, AbstractSet, Optional # noqa: UP035 import dagster._check as check import graphene from dagster._core.definitions.asset_health.asset_freshness_health import AssetFreshnessHealthState from dagster._core.definitions.asset_health.asset_materializatio...
1,483
59,530
dagster
python_modules/dagster-graphql/dagster_graphql/schema/pipelines/pipeline_ref.py
.py
import graphene class GraphenePipelineReference(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 ...
25
855
dagster
python_modules/dagster-graphql/dagster_graphql/schema/pipelines/logger.py
.py
from collections.abc import Callable import dagster._check as check import graphene from dagster._core.snap import ConfigTypeSnap, LoggerDefSnap from dagster_graphql.schema.config_types import GrapheneConfigTypeField from dagster_graphql.schema.util import ResolveInfo class GrapheneLogger(graphene.ObjectType): ...
44
1,518
dagster
python_modules/dagster-graphql/dagster_graphql/schema/pipelines/__init__.py
.py
def types(): from dagster_graphql.schema.pipelines.config import ( GrapheneConfigValidationError, GrapheneEvaluationErrorReason, GrapheneEvaluationStack, GrapheneEvaluationStackEntry, GrapheneEvaluationStackListItemEntry, GrapheneEvaluationStackMapKeyEntry, Gr...
97
3,666
dagster
python_modules/dagster-graphql/dagster_graphql/schema/pipelines/subscription.py
.py
import graphene from dagster_graphql.schema.logs.events import GrapheneDagsterRunEvent from dagster_graphql.schema.pipelines.pipeline import GrapheneRun from dagster_graphql.schema.util import non_null_list class GraphenePipelineRunLogsSubscriptionSuccess(graphene.ObjectType): run = graphene.NonNull(GrapheneRun)...
33
1,067
dagster
python_modules/dagster-graphql/dagster_graphql/schema/pipelines/snapshot.py
.py
import dagster._check as check import graphene from dagster._core.remote_representation.represented import RepresentedJob from dagster_graphql.schema.errors import ( GraphenePipelineNotFoundError, GraphenePipelineSnapshotNotFoundError, GraphenePythonError, ) from dagster_graphql.schema.pipelines.pipeline i...
42
1,394
dagster
python_modules/dagster-graphql/dagster_graphql/schema/pipelines/mode.py
.py
from collections.abc import Callable import dagster._check as check import graphene from dagster._config.snap import ConfigTypeSnap from dagster._core.snap import ModeDefSnap from dagster_graphql.schema.pipelines.logger import GrapheneLogger from dagster_graphql.schema.pipelines.resource import GrapheneResource from ...
54
1,870
dagster
python_modules/dagster-graphql/dagster_graphql/schema/pipelines/resource.py
.py
from collections.abc import Callable import dagster._check as check import graphene from dagster._config.snap import ConfigTypeSnap from dagster._core.snap import ResourceDefSnap from dagster_graphql.schema.config_types import GrapheneConfigTypeField from dagster_graphql.schema.errors import ( GrapheneInvalidSubs...
70
2,224
dagster
python_modules/dagster-graphql/dagster_graphql/schema/pipelines/status.py
.py
import dagster._check as check import graphene class GrapheneRunStatus(graphene.Enum): """The status of run execution.""" QUEUED = "QUEUED" NOT_STARTED = "NOT_STARTED" MANAGED = "MANAGED" STARTING = "STARTING" STARTED = "STARTED" SUCCESS = "SUCCESS" FAILURE = "FAILURE" CANCELING =...
43
1,635
dagster
python_modules/dagster-graphql/dagster_graphql/schema/pipelines/config_result.py
.py
import graphene from dagster_graphql.schema.errors import ( GrapheneInvalidSubsetError, GraphenePipelineNotFoundError, GraphenePythonError, ) from dagster_graphql.schema.pipelines.config import ( GraphenePipelineConfigValidationValid, GrapheneRunConfigValidationInvalid, ) class GraphenePipelineCo...
24
665
dagster
python_modules/dagster-graphql/dagster_graphql/schema/pipelines/config.py
.py
from collections import namedtuple from collections.abc import Callable, Sequence import dagster._check as check import graphene from dagster._config import ( EvaluationError as DagsterEvaluationError, EvaluationStackListItemEntry, EvaluationStackMapKeyEntry, EvaluationStackMapValueEntry, Evaluatio...
320
10,836
dagster
python_modules/dagster-graphql/dagster_graphql/schema/pipelines/pipeline_run_stats.py
.py
import dagster._check as check import graphene from dagster._core.storage.dagster_run import DagsterRunStatsSnapshot from dagster_graphql.schema.errors import GraphenePythonError class GraphenePipelineRunStatsSnapshot(graphene.Interface): id = graphene.NonNull(graphene.String) runId = graphene.NonNull(graphe...
60
2,234
dagster
python_modules/automation/automation_tests/test_git.py
.py
import os import subprocess import pytest from automation import git @pytest.fixture(name="repo") def repo_fixture(tmpdir): root = (tmpdir / "repo").mkdir() with root.as_cwd(): subprocess.call(["git", "init", "-q"]) (root / "subdir").mkdir() return root @pytest.fixture(name="other_repo...
61
1,888
dagster
python_modules/automation/automation_tests/test_eval_cli.py
.py
import json import tempfile from pathlib import Path from unittest.mock import MagicMock, patch import click import pytest from automation.eval.cli import Metric, evaluate_sessions, load_config, load_sessions from dagster_shared.utils import environ @pytest.fixture(autouse=True, scope="session") def blank_openapi_ke...
152
4,968
dagster
python_modules/automation/automation_tests/test_build_and_publish.py
.py
"""Tests for scripts/build_and_publish.sh functionality. These tests run the actual build_and_publish.sh script against a mock environment to verify the sed-based transformations for version updates and dependency pin replacements. """ import os import subprocess from pathlib import Path import pytest SCRIPT_PATH =...
165
4,899
dagster
python_modules/automation/automation_tests/test_repo.py
.py
from pathlib import Path from automation.utils import discover_oss_root, get_all_repo_packages, git_ls_files, pushd # We want to make sure all of our packages are published with `py.typed` files unless explicitly # excluded. def test_all_packages_have_py_typed(): git_root = discover_oss_root(Path(__file__)) ...
33
1,274
dagster
python_modules/automation/automation_tests/test_parse_spark_configs.py
.py
import os from automation.parse_spark_configs import extract, serialize def test_extract(): curr_path = os.path.dirname(__file__) with open(os.path.join(curr_path, "__snapshots__", "spark_confs.md"), encoding="utf8") as f: spark_conf_markdown = f.read() result = extract(spark_conf_markdown) ...
80
1,920
dagster
python_modules/automation/automation_tests/dagster_docs_tests/test_common_errors.py
.py
"""Tests for common docstring errors that should be caught by the validator. This test suite validates that the docstring validator correctly identifies common mistakes when writing Google-style docstrings and RST syntax errors. These tests ensure the validator catches issues that would break documentation builds or r...
453
14,958
dagster
python_modules/automation/automation_tests/dagster_docs_tests/test_public_packages.py
.py
"""Tests for public_packages module.""" import tempfile from pathlib import Path import pytest from automation.dagster_docs.public_packages import ( PublicPackage, get_public_dagster_packages, get_public_module_names, get_public_package_names, get_top_level_modules, get_top_level_packages, ...
286
11,131
dagster
python_modules/automation/automation_tests/dagster_docs_tests/test_changed_validator.py
.py
"""Tests for the changed_validator module.""" import tempfile from pathlib import Path from unittest.mock import patch from automation.dagster_docs.changed_validator import ( SymbolInfo, ValidationConfig, ValidationResult, extract_symbols_from_file, validate_changed_files, validate_symbols, ) ...
285
9,868