id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21,800 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/instigation.py | dagster._core.scheduler.instigation.InstigatorStatusBackcompatSerializer | from dagster_shared.serdes import EnumSerializer, deserialize_value, whitelist_for_serdes
class InstigatorStatusBackcompatSerializer(EnumSerializer):
def unpack(self, value: str):
if value == InstigatorStatus.AUTOMATICALLY_RUNNING.name:
value = InstigatorStatus.DECLARED_IN_CODE.name
re... |
class InstigatorStatusBackcompatSerializer(EnumSerializer):
def unpack(self, value: str):
pass | 2 | 0 | 5 | 1 | 4 | 0 | 2 | 0 | 1 | 3 | 1 | 0 | 1 | 0 | 1 | 27 | 6 | 1 | 5 | 2 | 3 | 0 | 5 | 2 | 3 | 2 | 6 | 1 | 2 |
21,801 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/instigation.py | dagster._core.scheduler.instigation.InstigatorTick | from dagster._core.definitions import RunRequest
from dagster_shared.serdes import EnumSerializer, deserialize_value, whitelist_for_serdes
from dagster._core.definitions.events import AssetKey, AssetKeyPartitionKey
import dagster._check as check
from dagster._core.definitions.run_request import InstigatorType as Instig... | @whitelist_for_serdes(old_storage_names={'JobTick'}, storage_field_names={'tick_data': 'job_tick_data'})
class InstigatorTick(NamedTuple('_InstigatorTick', [('tick_id', int), ('tick_data', 'TickData')])):
def __new__(cls, tick_id: int, tick_data: 'TickData'):
pass
def with_status(self, status: TickSta... | 66 | 1 | 5 | 0 | 4 | 0 | 2 | 0.02 | 1 | 17 | 4 | 0 | 37 | 0 | 37 | 37 | 231 | 42 | 185 | 89 | 113 | 4 | 120 | 55 | 82 | 12 | 1 | 4 | 56 |
21,802 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/instigation.py | dagster._core.scheduler.instigation.ScheduleInstigatorData | from typing import AbstractSet, Any, Generic, NamedTuple, Optional, Union
from collections.abc import Iterable, Mapping, Sequence
from dagster_shared.serdes import EnumSerializer, deserialize_value, whitelist_for_serdes
import dagster._check as check
@whitelist_for_serdes(old_storage_names={'ScheduleJobData'})
class S... | @whitelist_for_serdes(old_storage_names={'ScheduleJobData'})
class ScheduleInstigatorData(NamedTuple('_ScheduleInstigatorData', [('cron_schedule', Union[str, Sequence[str]]), ('start_timestamp', Optional[float]), ('last_iteration_timestamp', Optional[float])])):
def __new__(cls, cron_schedule: Union[str, Sequence[... | 3 | 0 | 21 | 1 | 15 | 5 | 2 | 0.24 | 1 | 5 | 0 | 0 | 1 | 0 | 1 | 1 | 32 | 1 | 25 | 16 | 9 | 6 | 6 | 2 | 4 | 2 | 1 | 1 | 2 |
21,803 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/instigation.py | dagster._core.scheduler.instigation.SensorInstigatorData | from dagster._core.definitions.sensor_definition import SensorType
from typing import AbstractSet, Any, Generic, NamedTuple, Optional, Union
import dagster._check as check
from dagster_shared.serdes import EnumSerializer, deserialize_value, whitelist_for_serdes
@whitelist_for_serdes(old_storage_names={'SensorJobData'}... | @whitelist_for_serdes(old_storage_names={'SensorJobData'})
class SensorInstigatorData(NamedTuple('_SensorInstigatorData', [('last_tick_timestamp', Optional[float]), ('last_run_key', Optional[str]), ('min_interval', Optional[int]), ('cursor', Optional[str]), ('last_tick_start_timestamp', Optional[float]), ('last_sensor_... | 4 | 0 | 17 | 0 | 17 | 0 | 1 | 0.12 | 1 | 4 | 0 | 0 | 2 | 0 | 2 | 2 | 56 | 1 | 49 | 27 | 22 | 6 | 6 | 3 | 3 | 1 | 1 | 0 | 2 |
21,804 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/instigation.py | dagster._core.scheduler.instigation.TickData | from dagster._utils.error import SerializableErrorInfo
from dagster_shared.serdes import EnumSerializer, deserialize_value, whitelist_for_serdes
from typing import AbstractSet, Any, Generic, NamedTuple, Optional, Union
from dagster._core.definitions.run_request import InstigatorType as InstigatorType, SkipReason as Ski... | @whitelist_for_serdes(old_storage_names={'JobTickData'}, storage_field_names={'instigator_origin_id': 'job_origin_id', 'instigator_name': 'job_name', 'instigator_type': 'job_type'})
class TickData(NamedTuple('_TickData', [('instigator_origin_id', str), ('instigator_name', str), ('instigator_type', InstigatorType), ('st... | 12 | 1 | 16 | 0 | 16 | 0 | 1 | 0.24 | 1 | 10 | 3 | 0 | 10 | 0 | 10 | 10 | 240 | 11 | 190 | 82 | 108 | 45 | 26 | 11 | 15 | 3 | 1 | 0 | 12 |
21,805 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/instigation.py | dagster._core.scheduler.instigation.TickStatus | from dagster_shared.serdes import EnumSerializer, deserialize_value, whitelist_for_serdes
from enum import Enum
@whitelist_for_serdes(old_storage_names={'JobTickStatus'})
class TickStatus(Enum):
STARTED = 'STARTED'
SKIPPED = 'SKIPPED'
SUCCESS = 'SUCCESS'
FAILURE = 'FAILURE' | @whitelist_for_serdes(old_storage_names={'JobTickStatus'})
class TickStatus(Enum):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
21,806 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/scheduler.py | dagster._core.scheduler.scheduler.DagsterDaemonScheduler | import os
from dagster._utils import mkdir_p
from typing import Any, NamedTuple, Optional
from dagster._serdes.config_class import ConfigurableClassData
from typing_extensions import Self
from dagster._core.instance import DagsterInstance
from dagster._config import Field, IntSource
from dagster._serdes import Configur... |
class DagsterDaemonScheduler(Scheduler, ConfigurableClass):
'''Default scheduler implementation that submits runs from the long-lived ``dagster-daemon``
process. Periodically checks each running schedule for execution times that don't yet
have runs and launches them.
'''
def __init__(self, max_cat... | 12 | 1 | 8 | 1 | 8 | 0 | 1 | 0.06 | 2 | 5 | 1 | 0 | 6 | 3 | 8 | 36 | 80 | 12 | 64 | 26 | 43 | 4 | 27 | 14 | 18 | 2 | 5 | 1 | 9 |
21,807 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/scheduler.py | dagster._core.scheduler.scheduler.DagsterScheduleDoesNotExist | class DagsterScheduleDoesNotExist(DagsterSchedulerError):
"""Errors raised when fetching a schedule.""" | class DagsterScheduleDoesNotExist(DagsterSchedulerError):
'''Errors raised when fetching a schedule.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 2 | 0 | 0 |
21,808 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/scheduler.py | dagster._core.scheduler.scheduler.DagsterSchedulerError | from dagster_shared.error import DagsterError
class DagsterSchedulerError(DagsterError):
"""Base class for all Dagster Scheduler errors.""" |
class DagsterSchedulerError(DagsterError):
'''Base class for all Dagster Scheduler errors.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 |
21,809 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/scheduler.py | dagster._core.scheduler.scheduler.Scheduler | import dagster._check as check
from typing import Any, NamedTuple, Optional
from dagster._core.definitions.run_request import InstigatorType
from dagster._core.instance import DagsterInstance
from dagster._core.scheduler.instigation import InstigatorState, InstigatorStatus, ScheduleInstigatorData
import abc
from dagste... | @public
class Scheduler(abc.ABC):
'''Abstract base class for a scheduler. This component is responsible for interfacing with
an external system such as cron to ensure scheduled repeated execution according.
'''
def start_schedule(self, instance: DagsterInstance, remote_schedule: RemoteSchedule) -> Inst... | 9 | 6 | 27 | 4 | 19 | 5 | 2 | 0.28 | 1 | 5 | 4 | 1 | 5 | 0 | 5 | 25 | 147 | 25 | 96 | 29 | 78 | 27 | 43 | 17 | 37 | 4 | 4 | 1 | 11 |
21,810 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/scheduler.py | dagster._core.scheduler.scheduler.SchedulerDebugInfo | import dagster._check as check
from collections.abc import Mapping, Sequence
from typing import Any, NamedTuple, Optional
class SchedulerDebugInfo(NamedTuple('SchedulerDebugInfo', [('errors', Sequence[str]), ('scheduler_config_info', str), ('scheduler_info', str), ('schedule_storage', Sequence[str])])):
def __new... |
class SchedulerDebugInfo(NamedTuple('SchedulerDebugInfo', [('errors', Sequence[str]), ('scheduler_config_info', str), ('scheduler_info', str), ('schedule_storage', Sequence[str])])):
def __new__(cls, errors: Sequence[str], scheduler_config_info: str, scheduler_info: str, schedule_storage: Sequence[str]):
... | 2 | 0 | 16 | 0 | 16 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 27 | 0 | 27 | 18 | 9 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,811 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/secrets/env_file.py | dagster._core.secrets.env_file.EnvFileLoader | from dagster._serdes.config_class import ConfigurableClassData
from typing import Any, Optional
from dagster._core.secrets.loader import SecretsLoader
from typing_extensions import Self
from dagster._config import Field, Map, StringSource
from collections.abc import Mapping
from dagster._serdes import ConfigurableClass... |
class EnvFileLoader(SecretsLoader, ConfigurableClass):
def __init__(self, inst_data: Optional[ConfigurableClassData]=None, base_dir=None):
pass
def get_secrets_for_environment(self, location_name: Optional[str]) -> dict[str, str]:
pass
@property
def inst_data(self):
pass
@... | 9 | 0 | 6 | 1 | 5 | 0 | 1 | 0 | 2 | 5 | 1 | 0 | 3 | 2 | 5 | 30 | 37 | 7 | 30 | 19 | 15 | 0 | 17 | 10 | 11 | 2 | 5 | 1 | 6 |
21,812 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/secrets/loader.py | dagster._core.secrets.loader.SecretsLoader | from dagster._core.instance import MayHaveInstanceWeakref, T_DagsterInstance
from typing import Optional
from collections.abc import Mapping
from abc import ABC, abstractmethod
class SecretsLoader(ABC, MayHaveInstanceWeakref[T_DagsterInstance]):
@abstractmethod
def get_secrets_for_environment(self, location_n... |
class SecretsLoader(ABC, MayHaveInstanceWeakref[T_DagsterInstance]):
@abstractmethod
def get_secrets_for_environment(self, location_name: Optional[str]) -> Mapping[str, str]:
pass
def dispose(self):
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 2 | 2 | 0 | 2 | 2 | 0 | 2 | 22 | 7 | 1 | 6 | 4 | 2 | 0 | 5 | 3 | 2 | 1 | 4 | 0 | 2 |
21,813 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/selector/subset_selector.py | dagster._core.selector.subset_selector.AssetSelectionData | from typing import TYPE_CHECKING, AbstractSet, Callable, Generic, NamedTuple, Optional, TypeVar
from dagster._record import record
from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey
from dagster._core.definitions.events import AssetKey
@record
class AssetSelectionData:
"""The data ab... | @record
class AssetSelectionData:
'''The data about asset selection.
Args:
asset_selection (FrozenSet[AssetKey]): The set of assets to be materialized within the job.
parent_job_def (JobDefinition): The definition of the full job. This is used for constructing
pipeline snapshot linea... | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 1.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 2 | 4 | 1 | 3 | 6 | 4 | 1 | 3 | 0 | 0 | 0 | 0 |
21,814 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/selector/subset_selector.py | dagster._core.selector.subset_selector.GraphSelectionClause | from typing import TYPE_CHECKING, AbstractSet, Callable, Generic, NamedTuple, Optional, TypeVar
class GraphSelectionClause(NamedTuple):
up_depth: int
item_name: str
down_depth: int |
class GraphSelectionClause(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
21,815 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/selector/subset_selector.py | dagster._core.selector.subset_selector.OpSelectionData | from typing import TYPE_CHECKING, AbstractSet, Callable, Generic, NamedTuple, Optional, TypeVar
from collections.abc import Hashable, Iterable, Mapping, MutableSet, Sequence
from dagster._utils import check
class OpSelectionData(NamedTuple('_OpSelectionData', [('op_selection', Sequence[str]), ('resolved_op_selection',... |
class OpSelectionData(NamedTuple('_OpSelectionData', [('op_selection', Sequence[str]), ('resolved_op_selection', AbstractSet[str]), ('parent_job_def', 'JobDefinition')])):
'''The data about op selection.
Args:
op_selection (List[str]): The queries of op selection.
resolved_op_selection (Abstrac... | 2 | 1 | 16 | 1 | 15 | 0 | 1 | 0.28 | 1 | 4 | 1 | 0 | 1 | 0 | 1 | 1 | 35 | 3 | 25 | 17 | 8 | 7 | 4 | 3 | 1 | 1 | 1 | 0 | 1 |
21,816 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/selector/subset_selector.py | dagster._core.selector.subset_selector.Traverser | from collections import defaultdict, deque
from collections.abc import Hashable, Iterable, Mapping, MutableSet, Sequence
from typing import TYPE_CHECKING, AbstractSet, Callable, Generic, NamedTuple, Optional, TypeVar
class Traverser(Generic[T_Hashable]):
def __init__(self, graph: DependencyGraph[T_Hashable]):
... |
class Traverser(Generic[T_Hashable]):
def __init__(self, graph: DependencyGraph[T_Hashable]):
pass
def _fetch_items(self, item_names: Iterable[T_Hashable], depth: int, direction: Direction) -> AbstractSet[T_Hashable]:
pass
def fetch_upstream_multiple(self, item_names: Iterable[T_Hashable... | 7 | 0 | 8 | 0 | 7 | 1 | 2 | 0.14 | 1 | 2 | 0 | 0 | 4 | 1 | 4 | 6 | 35 | 3 | 28 | 16 | 21 | 4 | 26 | 14 | 21 | 6 | 1 | 4 | 9 |
21,817 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/dagster_types.py | dagster._core.snap.dagster_types.DagsterTypeNamespaceSnapshot | from collections.abc import Mapping, Sequence
from typing import NamedTuple, Optional
import dagster._check as check
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes
class DagsterTypeNamespaceSnapshot(NamedTuple('_DagsterTypeNamespaceSnapshot', [('all_dagster_type_snaps_by_key', Mapping[str, 'Dag... | @whitelist_for_serdes
class DagsterTypeNamespaceSnapshot(NamedTuple('_DagsterTypeNamespaceSnapshot', [('all_dagster_type_snaps_by_key', Mapping[str, 'DagsterTypeSnap'])])):
def __new__(cls, all_dagster_type_snaps_by_key: Mapping[str, 'DagsterTypeSnap']):
pass
def get_dagster_type_snap(self, key: str) ... | 4 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 4 | 1 | 0 | 2 | 0 | 2 | 2 | 20 | 1 | 19 | 8 | 11 | 0 | 6 | 3 | 3 | 1 | 1 | 0 | 2 |
21,818 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/dagster_types.py | dagster._core.snap.dagster_types.DagsterTypeSnap | from collections.abc import Mapping, Sequence
import dagster._check as check
from dagster._core.definitions.metadata import MetadataFieldSerializer, MetadataValue, normalize_metadata
from dagster._serdes import whitelist_for_serdes
from dagster._core.types.dagster_type import DagsterType, DagsterTypeKind
from typing im... | @whitelist_for_serdes(skip_when_empty_fields={'metadata'}, storage_field_names={'metadata': 'metadata_entries'}, field_serializers={'metadata': MetadataFieldSerializer})
class DagsterTypeSnap(NamedTuple('_DagsterTypeSnap', [('kind', DagsterTypeKind), ('key', str), ('name', Optional[str]), ('description', Optional[str])... | 3 | 0 | 30 | 0 | 30 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 47 | 0 | 47 | 30 | 17 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,819 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/dep_snapshot.py | dagster._core.snap.dep_snapshot.DependencyStructureIndex | from collections import defaultdict
import dagster._check as check
from collections.abc import Mapping, Sequence
class DependencyStructureIndex:
_invocations_dict: dict[str, 'NodeInvocationSnap']
_output_to_upstream_index: Mapping[str, Mapping[str, Sequence[InputHandle]]]
def __init__(self, dep_structure_... |
class DependencyStructureIndex:
def __init__(self, dep_structure_snapshot: DependencyStructureSnapshot):
pass
def _build_index(self, node_invocation_snaps: Sequence['NodeInvocationSnap']) -> Mapping[str, Mapping[str, Sequence[InputHandle]]]:
pass
@property
def node_invocation_names(se... | 12 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 0 | 7 | 2 | 0 | 9 | 0 | 9 | 9 | 69 | 12 | 57 | 19 | 43 | 0 | 37 | 15 | 27 | 4 | 0 | 3 | 12 |
21,820 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/dep_snapshot.py | dagster._core.snap.dep_snapshot.DependencyStructureSnapshot | from collections.abc import Mapping, Sequence
from typing import NamedTuple
import dagster._check as check
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes(storage_field_names={'node_invocation_snaps': 'solid_invocation_snaps'})
class DependencyStructureSnapshot(NamedTuple('_DependencyStructureSn... | @whitelist_for_serdes(storage_field_names={'node_invocation_snaps': 'solid_invocation_snaps'})
class DependencyStructureSnapshot(NamedTuple('_DependencyStructureSnapshot', [('node_invocation_snaps', Sequence['NodeInvocationSnap'])])):
def __new__(cls, node_invocation_snaps: Sequence['NodeInvocationSnap']):
... | 3 | 0 | 10 | 0 | 10 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 0 | 1 | 1 | 16 | 0 | 16 | 7 | 9 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,821 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/dep_snapshot.py | dagster._core.snap.dep_snapshot.InputDependencySnap | import dagster._check as check
from dagster._serdes import whitelist_for_serdes
from collections.abc import Mapping, Sequence
from typing import NamedTuple
@whitelist_for_serdes
class InputDependencySnap(NamedTuple('_InputDependencySnap', [('input_name', str), ('upstream_output_snaps', Sequence[OutputHandleSnap]), ('i... | @whitelist_for_serdes
class InputDependencySnap(NamedTuple('_InputDependencySnap', [('input_name', str), ('upstream_output_snaps', Sequence[OutputHandleSnap]), ('is_dynamic_collect', bool)])):
def __new__(cls, input_name: str, upstream_output_snaps: Sequence[OutputHandleSnap], is_dynamic_collect: bool=False):
... | 3 | 0 | 16 | 0 | 14 | 2 | 1 | 0.08 | 1 | 5 | 1 | 0 | 1 | 0 | 1 | 1 | 26 | 0 | 24 | 16 | 8 | 2 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,822 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/dep_snapshot.py | dagster._core.snap.dep_snapshot.InputHandle | import dagster._check as check
from typing import NamedTuple
class InputHandle(NamedTuple('_InputHandle', [('node_def_name', str), ('node_name', str), ('input_name', str)])):
def __new__(cls, node_def_name: str, node_name: str, input_name: str):
return super().__new__(cls, node_def_name=check.str_param(no... |
class InputHandle(NamedTuple('_InputHandle', [('node_def_name', str), ('node_name', str), ('input_name', str)])):
def __new__(cls, node_def_name: str, node_name: str, input_name: str):
pass | 2 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 10 | 0 | 10 | 4 | 6 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,823 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/dep_snapshot.py | dagster._core.snap.dep_snapshot.NodeInvocationSnap | import dagster._check as check
from functools import cached_property
from typing import NamedTuple
from dagster._serdes import whitelist_for_serdes
from collections.abc import Mapping, Sequence
@whitelist_for_serdes(storage_name='SolidInvocationSnap', storage_field_names={'node_name': 'solid_name', 'node_def_name': 's... | @whitelist_for_serdes(storage_name='SolidInvocationSnap', storage_field_names={'node_name': 'solid_name', 'node_def_name': 'solid_def_name'})
class NodeInvocationSnap(NamedTuple('_NodeInvocationSnap', [('node_name', str), ('node_def_name', str), ('tags', Mapping[str, str]), ('input_dep_snaps', Sequence[InputDependencyS... | 6 | 0 | 9 | 0 | 8 | 0 | 1 | 0 | 1 | 6 | 1 | 0 | 3 | 0 | 3 | 3 | 41 | 3 | 38 | 24 | 15 | 0 | 10 | 5 | 6 | 2 | 1 | 1 | 4 |
21,824 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/dep_snapshot.py | dagster._core.snap.dep_snapshot.OutputHandleSnap | import dagster._check as check
from typing import NamedTuple
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes(storage_field_names={'node_name': 'solid_name'})
class OutputHandleSnap(NamedTuple('_OutputHandleSnap', [('node_name', str), ('output_name', str)])):
def __new__(cls, node_name: str,... | @whitelist_for_serdes(storage_field_names={'node_name': 'solid_name'})
class OutputHandleSnap(NamedTuple('_OutputHandleSnap', [('node_name', str), ('output_name', str)])):
def __new__(cls, node_name: str, output_name: str):
pass | 3 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 7 | 0 | 7 | 2 | 5 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,825 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/execution_plan_snapshot.py | dagster._core.snap.execution_plan_snapshot.ExecutionPlanMetadataItemSnap | import dagster._check as check
from dagster._serdes import create_snapshot_id, whitelist_for_serdes
from typing import AbstractSet, NamedTuple, Optional
@whitelist_for_serdes
class ExecutionPlanMetadataItemSnap(NamedTuple('_ExecutionPlanMetadataItemSnap', [('key', str), ('value', str)])):
def __new__(cls, key: st... | @whitelist_for_serdes
class ExecutionPlanMetadataItemSnap(NamedTuple('_ExecutionPlanMetadataItemSnap', [('key', str), ('value', str)])):
def __new__(cls, key: str, value: str):
pass | 3 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 9 | 0 | 9 | 4 | 5 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,826 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/execution_plan_snapshot.py | dagster._core.snap.execution_plan_snapshot.ExecutionPlanSnapshot | from typing import AbstractSet, NamedTuple, Optional
from dagster._serdes import create_snapshot_id, whitelist_for_serdes
import dagster._check as check
from dagster._core.execution.plan.state import KnownExecutionState
from collections.abc import Mapping, Sequence
from dagster._core.definitions.events import AssetKey
... | @whitelist_for_serdes(storage_field_names={'job_snapshot_id': 'pipeline_snapshot_id'}, skip_when_empty_fields={'repository_load_data'})
class ExecutionPlanSnapshot(NamedTuple('_ExecutionPlanSnapshot', [('steps', Sequence['ExecutionStepSnap']), ('artifacts_persisted', bool), ('job_snapshot_id', str), ('step_keys_to_exec... | 9 | 0 | 13 | 1 | 12 | 0 | 3 | 0.15 | 1 | 8 | 2 | 0 | 4 | 0 | 4 | 4 | 84 | 7 | 67 | 38 | 35 | 10 | 20 | 11 | 15 | 5 | 1 | 4 | 10 |
21,827 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/execution_plan_snapshot.py | dagster._core.snap.execution_plan_snapshot.ExecutionPlanSnapshotErrorData | from dagster._utils.error import SerializableErrorInfo
from dagster._serdes import create_snapshot_id, whitelist_for_serdes
import dagster._check as check
from typing import AbstractSet, NamedTuple, Optional
@whitelist_for_serdes
class ExecutionPlanSnapshotErrorData(NamedTuple('_ExecutionPlanSnapshotErrorData', [('err... | @whitelist_for_serdes
class ExecutionPlanSnapshotErrorData(NamedTuple('_ExecutionPlanSnapshotErrorData', [('error', Optional[SerializableErrorInfo])])):
def __new__(cls, error: Optional[SerializableErrorInfo]):
pass | 3 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 1 | 8 | 0 | 8 | 4 | 4 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,828 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/execution_plan_snapshot.py | dagster._core.snap.execution_plan_snapshot.ExecutionStepInputSnap | from dagster._serdes import create_snapshot_id, whitelist_for_serdes
from typing import AbstractSet, NamedTuple, Optional
from dagster._core.execution.plan.outputs import StepOutput, StepOutputHandle, StepOutputProperties
import dagster._check as check
from dagster._core.execution.plan.inputs import StepInput, StepInpu... | @whitelist_for_serdes
class ExecutionStepInputSnap(NamedTuple('_ExecutionStepInputSnap', [('name', str), ('dagster_type_key', str), ('upstream_output_handles', Sequence[StepOutputHandle]), ('source', Optional[StepInputSourceUnion])])):
def __new__(cls, name: str, dagster_type_key: str, upstream_output_handles: Seq... | 5 | 0 | 9 | 0 | 9 | 1 | 1 | 0.03 | 1 | 4 | 1 | 0 | 2 | 0 | 2 | 2 | 31 | 1 | 30 | 20 | 10 | 1 | 5 | 3 | 2 | 1 | 1 | 0 | 2 |
21,829 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/execution_plan_snapshot.py | dagster._core.snap.execution_plan_snapshot.ExecutionStepOutputSnap | from dagster._core.execution.plan.outputs import StepOutput, StepOutputHandle, StepOutputProperties
from typing import AbstractSet, NamedTuple, Optional
from dagster._serdes import create_snapshot_id, whitelist_for_serdes
from dagster._core.definitions.asset_key import EntityKey
from dagster._core.definitions import No... | @whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
class ExecutionStepOutputSnap(NamedTuple('_ExecutionStepOutputSnap', [('name', str), ('dagster_type_key', str), ('node_handle', Optional[NodeHandle]), ('properties', Optional[StepOutputProperties])])):
def __new__(cls, name: str, dagster_ty... | 5 | 0 | 14 | 0 | 14 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 0 | 1 | 1 | 25 | 0 | 25 | 18 | 7 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,830 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/execution_plan_snapshot.py | dagster._core.snap.execution_plan_snapshot.ExecutionStepSnap | from dagster._core.definitions.asset_key import EntityKey
from typing import AbstractSet, NamedTuple, Optional
from dagster._core.execution.plan.step import ExecutionStep, IExecutionStep, StepKind, UnresolvedCollectExecutionStep, UnresolvedMappedExecutionStep
from collections.abc import Mapping, Sequence
import dagster... | @whitelist_for_serdes(storage_field_names={'node_handle_id': 'solid_handle_id'}, skip_when_none_fields={'pool'})
class ExecutionStepSnap(NamedTuple('_ExecutionStepSnap', [('key', str), ('inputs', Sequence['ExecutionStepInputSnap']), ('outputs', Sequence['ExecutionStepOutputSnap']), ('node_handle_id', str), ('kind', Ste... | 7 | 2 | 29 | 0 | 26 | 3 | 1 | 0.07 | 1 | 7 | 3 | 0 | 1 | 0 | 1 | 1 | 45 | 0 | 42 | 28 | 14 | 3 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,831 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/job_snapshot.py | dagster._core.snap.job_snapshot.JobLineageSnap | from typing import AbstractSet, Any, Optional, Union, cast
from dagster._record import IHaveNew, record, record_custom
from collections.abc import Mapping, Sequence
from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey
from dagster._core.definitions.events import AssetKey
from dagster._serde... | @whitelist_for_serdes(storage_name='PipelineSnapshotLineage', storage_field_names={'op_selection': 'solid_selection', 'resolved_op_selection': 'solids_to_execute'})
@record
class JobLineageSnap:
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 5 | 5 | 0 | 6 | 5 | 5 | 0 | 0 | 0 | 0 |
21,832 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/job_snapshot.py | dagster._core.snap.job_snapshot.JobSnap | from dagster._serdes import create_snapshot_id, deserialize_value, whitelist_for_serdes
from dagster._core.definitions.metadata import MetadataFieldSerializer, MetadataValue, RawMetadataValue, normalize_metadata
from dagster import _check as check
from typing import AbstractSet, Any, Optional, Union, cast
from dagster.... | @whitelist_for_serdes(storage_name='PipelineSnapshot', serializer=JobSnapSerializer, skip_when_empty_fields={'metadata'}, skip_when_none_fields={'run_tags'}, field_serializers={'metadata': MetadataFieldSerializer}, storage_field_names={'node_defs_snapshot': 'solid_definitions_snapshot'})
@record_custom
class JobSnap(IH... | 15 | 0 | 14 | 1 | 13 | 0 | 3 | 0.04 | 1 | 13 | 7 | 0 | 7 | 0 | 8 | 10 | 138 | 13 | 120 | 39 | 90 | 5 | 55 | 17 | 46 | 5 | 1 | 2 | 20 |
21,833 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/job_snapshot.py | dagster._core.snap.job_snapshot.JobSnapSerializer | from typing import AbstractSet, Any, Optional, Union, cast
from dagster_shared.serdes.serdes import RecordSerializer
class JobSnapSerializer(RecordSerializer['JobSnap']):
def before_unpack(self, context, unpacked_dict: Any) -> dict[str, Any]:
if unpacked_dict.get('graph_def_name') is None:
unp... |
class JobSnapSerializer(RecordSerializer['JobSnap']):
def before_unpack(self, context, unpacked_dict: Any) -> dict[str, Any]:
pass | 2 | 0 | 14 | 0 | 14 | 0 | 5 | 0.87 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 28 | 0 | 15 | 6 | 9 | 13 | 11 | 2 | 9 | 5 | 1 | 1 | 5 |
21,834 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/mode.py | dagster._core.snap.mode.LoggerDefSnap | import dagster._check as check
from dagster._config import ConfigFieldSnap, snap_from_field
from dagster._serdes import whitelist_for_serdes
from typing import NamedTuple, Optional
@whitelist_for_serdes
class LoggerDefSnap(NamedTuple('_LoggerDefSnap', [('name', str), ('description', Optional[str]), ('config_field_snap... | @whitelist_for_serdes
class LoggerDefSnap(NamedTuple('_LoggerDefSnap', [('name', str), ('description', Optional[str]), ('config_field_snap', Optional[ConfigFieldSnap])])):
def __new__(cls, name: str, description: Optional[str], config_field_snap: Optional[ConfigFieldSnap]):
pass | 3 | 0 | 11 | 0 | 11 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 21 | 0 | 21 | 13 | 8 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,835 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/mode.py | dagster._core.snap.mode.ModeDefSnap | from collections.abc import Sequence
from dagster._serdes import whitelist_for_serdes
from typing import NamedTuple, Optional
import dagster._check as check
@whitelist_for_serdes
class ModeDefSnap(NamedTuple('_ModeDefSnap', [('name', str), ('description', Optional[str]), ('resource_def_snaps', Sequence['ResourceDefSna... | @whitelist_for_serdes
class ModeDefSnap(NamedTuple('_ModeDefSnap', [('name', str), ('description', Optional[str]), ('resource_def_snaps', Sequence['ResourceDefSnap']), ('logger_def_snaps', Sequence['LoggerDefSnap']), ('root_config_key', Optional[str])])):
def __new__(cls, name: str, description: Optional[str], res... | 3 | 0 | 20 | 0 | 20 | 0 | 1 | 0 | 1 | 5 | 2 | 0 | 1 | 0 | 1 | 1 | 32 | 0 | 32 | 20 | 12 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,836 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/mode.py | dagster._core.snap.mode.ResourceDefSnap | from dagster._config import ConfigFieldSnap, snap_from_field
import dagster._check as check
from dagster._serdes import whitelist_for_serdes
from typing import NamedTuple, Optional
@whitelist_for_serdes
class ResourceDefSnap(NamedTuple('_ResourceDefSnap', [('name', str), ('description', Optional[str]), ('config_field_... | @whitelist_for_serdes
class ResourceDefSnap(NamedTuple('_ResourceDefSnap', [('name', str), ('description', Optional[str]), ('config_field_snap', Optional[ConfigFieldSnap])])):
def __new__(cls, name: str, description: Optional[str], config_field_snap: Optional[ConfigFieldSnap]):
pass | 3 | 0 | 11 | 0 | 11 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 21 | 0 | 21 | 13 | 8 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,837 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/node.py | dagster._core.snap.node.GraphDefSnap | from dagster._serdes import whitelist_for_serdes
from functools import cached_property
from typing import Optional, Union
from dagster._record import IHaveNew, record, record_custom
from dagster._config import ConfigFieldSnap, snap_from_field
from collections.abc import Mapping, Sequence, Set
from dagster._core.snap.de... | @whitelist_for_serdes(storage_name='CompositeSolidDefSnap', skip_when_empty_fields={'pools'})
@record
class GraphDefSnap:
@cached_property
def input_def_map(self) -> Mapping[str, InputDefSnap]:
pass
@cached_property
def output_def_map(self) -> Mapping[str, OutputDefSnap]:
pass
def ... | 9 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 4 | 2 | 0 | 4 | 0 | 4 | 4 | 25 | 4 | 21 | 8 | 14 | 0 | 19 | 6 | 14 | 1 | 0 | 0 | 4 |
21,838 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/node.py | dagster._core.snap.node.InputDefSnap | from collections.abc import Mapping, Sequence, Set
from dagster._core.definitions.metadata import MetadataFieldSerializer, MetadataValue, normalize_metadata
from dagster._serdes import whitelist_for_serdes
from typing import Optional, Union
from dagster._record import IHaveNew, record, record_custom
import dagster._che... | @whitelist_for_serdes(storage_field_names={'metadata': 'metadata_entries'}, field_serializers={'metadata': MetadataFieldSerializer}, skip_when_empty_fields={'metadata'})
@record_custom
class InputDefSnap(IHaveNew):
def __new__(cls, name: str, dagster_type_key: str, description: Optional[str], metadata: Optional[Ma... | 4 | 0 | 16 | 0 | 16 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 3 | 22 | 1 | 21 | 8 | 13 | 0 | 7 | 2 | 5 | 1 | 1 | 0 | 1 |
21,839 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/node.py | dagster._core.snap.node.InputMappingSnap | from dagster._record import IHaveNew, record, record_custom
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes(storage_field_names={'mapped_node_name': 'mapped_solid_name'})
@record
class InputMappingSnap:
mapped_node_name: str
mapped_input_name: str
external_input_name: str | @whitelist_for_serdes(storage_field_names={'mapped_node_name': 'mapped_solid_name'})
@record
class InputMappingSnap:
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 0 | 0 | 0 |
21,840 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/node.py | dagster._core.snap.node.NodeDefsSnapshot | from dagster._serdes import whitelist_for_serdes
from dagster._record import IHaveNew, record, record_custom
from collections.abc import Mapping, Sequence, Set
@whitelist_for_serdes(storage_name='SolidDefinitionsSnapshot', storage_field_names={'op_def_snaps': 'solid_def_snaps', 'graph_def_snaps': 'composite_solid_def_... | @whitelist_for_serdes(storage_name='SolidDefinitionsSnapshot', storage_field_names={'op_def_snaps': 'solid_def_snaps', 'graph_def_snaps': 'composite_solid_def_snaps'})
@record
class NodeDefsSnapshot:
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 0 | 0 | 0 |
21,841 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/node.py | dagster._core.snap.node.OpDefSnap | from typing import Optional, Union
from dagster._record import IHaveNew, record, record_custom
from dagster._serdes import whitelist_for_serdes
from functools import cached_property
from collections.abc import Mapping, Sequence, Set
from dagster._config import ConfigFieldSnap, snap_from_field
@whitelist_for_serdes(sto... | @whitelist_for_serdes(storage_name='SolidDefSnap', skip_when_none_fields={'pool'})
@record
class OpDefSnap:
@cached_property
def input_def_map(self) -> Mapping[str, InputDefSnap]:
pass
@cached_property
def output_def_map(self) -> Mapping[str, OutputDefSnap]:
pass
def get_input_snap... | 9 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 4 | 2 | 0 | 4 | 0 | 4 | 4 | 23 | 4 | 19 | 8 | 12 | 0 | 17 | 6 | 12 | 1 | 0 | 0 | 4 |
21,842 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/node.py | dagster._core.snap.node.OutputDefSnap | from dagster._core.definitions.metadata import MetadataFieldSerializer, MetadataValue, normalize_metadata
from dagster._serdes import whitelist_for_serdes
import dagster._check as check
from collections.abc import Mapping, Sequence, Set
from typing import Optional, Union
from dagster._record import IHaveNew, record, re... | @whitelist_for_serdes(storage_field_names={'metadata': 'metadata_entries'}, field_serializers={'metadata': MetadataFieldSerializer}, skip_when_empty_fields={'metadata'})
@record_custom
class OutputDefSnap(IHaveNew):
def __new__(cls, name: str, dagster_type_key: str, description: Optional[str], is_required: bool, m... | 4 | 0 | 20 | 0 | 20 | 0 | 1 | 0 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 3 | 28 | 1 | 27 | 10 | 17 | 0 | 9 | 2 | 7 | 1 | 1 | 0 | 1 |
21,843 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/snap/node.py | dagster._core.snap.node.OutputMappingSnap | from dagster._record import IHaveNew, record, record_custom
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes(storage_field_names={'mapped_node_name': 'mapped_solid_name'})
@record
class OutputMappingSnap:
mapped_node_name: str
mapped_output_name: str
external_output_name: str | @whitelist_for_serdes(storage_field_names={'mapped_node_name': 'mapped_solid_name'})
@record
class OutputMappingSnap:
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 0 | 0 | 0 |
21,844 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/asset_check_execution_record.py | dagster._core.storage.asset_check_execution_record.AssetCheckExecutionRecord | from collections.abc import Iterable
from dagster._core.events.log import DagsterEventType, EventLogEntry
from dagster_shared.serdes import deserialize_value
from dagster._core.definitions.asset_key import AssetCheckKey
from dagster._core.loader import LoadableBy, LoadingContext
from dagster._time import utc_datetime_f... |
class AssetCheckExecutionRecord(NamedTuple('_AssetCheckExecutionRecord', [('key', AssetCheckKey), ('id', int), ('run_id', str), ('status', AssetCheckExecutionRecordStatus), ('event', Optional[EventLogEntry]), ('create_timestamp', float)]), LoadableBy[AssetCheckKey]):
def __new__(cls, key: AssetCheckKey, id: int, ... | 10 | 0 | 25 | 1 | 22 | 2 | 4 | 0.09 | 2 | 11 | 4 | 0 | 4 | 0 | 6 | 6 | 173 | 12 | 148 | 47 | 112 | 13 | 55 | 19 | 47 | 8 | 1 | 2 | 24 |
21,845 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/asset_check_execution_record.py | dagster._core.storage.asset_check_execution_record.AssetCheckExecutionRecordStatus | import enum
class AssetCheckExecutionRecordStatus(enum.Enum):
PLANNED = 'PLANNED'
SUCCEEDED = 'SUCCEEDED'
FAILED = 'FAILED' |
class AssetCheckExecutionRecordStatus(enum.Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 4 | 0 | 4 | 4 | 3 | 1 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
21,846 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/asset_check_execution_record.py | dagster._core.storage.asset_check_execution_record.AssetCheckExecutionResolvedStatus | from dagster._serdes import whitelist_for_serdes
import enum
@whitelist_for_serdes
class AssetCheckExecutionResolvedStatus(enum.Enum):
IN_PROGRESS = 'IN_PROGRESS'
SUCCEEDED = 'SUCCEEDED'
FAILED = 'FAILED'
EXECUTION_FAILED = 'EXECUTION_FAILED'
SKIPPED = 'SKIPPED' | @whitelist_for_serdes
class AssetCheckExecutionResolvedStatus(enum.Enum):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 6 | 0 | 6 | 6 | 5 | 3 | 6 | 6 | 5 | 0 | 4 | 0 | 0 |
21,847 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/asset_check_execution_record.py | dagster._core.storage.asset_check_execution_record.AssetCheckInstanceSupport | import enum
class AssetCheckInstanceSupport(enum.Enum):
"""Reasons why a dagster instance might not support checks."""
SUPPORTED = 'SUPPORTED'
NEEDS_MIGRATION = 'NEEDS_MIGRATION'
NEEDS_AGENT_UPGRADE = 'NEEDS_AGENT_UPGRADE' |
class AssetCheckInstanceSupport(enum.Enum):
'''Reasons why a dagster instance might not support checks.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 6 | 1 | 4 | 4 | 3 | 1 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
21,848 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/asset_value_loader.py | dagster._core.storage.asset_value_loader.AssetValueLoader | from typing import TYPE_CHECKING, Any, Optional, cast
from dagster._core.definitions.resource_definition import ResourceDefinition
from dagster._core.definitions.partitions.partition_key_range import PartitionKeyRange
from dagster._core.instance.config import is_dagster_home_set
from dagster._utils.merger import merge_... | @public
class AssetValueLoader:
'''Caches resource definitions that are used to load asset values across multiple load
invocations.
Should not be instantiated directly. Instead, use
:py:meth:`~dagster.RepositoryDefinition.get_asset_value_loader`.
'''
def __init__(self, assets_defs_by_key: Mappi... | 9 | 2 | 26 | 2 | 21 | 3 | 2 | 0.18 | 0 | 9 | 2 | 0 | 5 | 4 | 5 | 5 | 150 | 17 | 113 | 47 | 84 | 20 | 37 | 25 | 31 | 5 | 0 | 1 | 11 |
21,849 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/base_storage.py | dagster._core.storage.base_storage.DagsterStorage | from dagster._core.storage.runs.base import RunStorage
from dagster._core.instance import MayHaveInstanceWeakref, T_DagsterInstance
from dagster._core.storage.schedules.base import ScheduleStorage
from dagster._annotations import public
from dagster._core.storage.event_log.base import EventLogStorage
from abc import AB... | @public
class DagsterStorage(ABC, MayHaveInstanceWeakref[T_DagsterInstance]):
'''Abstract base class for Dagster persistent storage, for reading and writing data for runs,
events, and schedule/sensor state.
Users should not directly instantiate concrete subclasses of this class; they are instantiated
by... | 11 | 1 | 2 | 0 | 2 | 0 | 1 | 0.54 | 2 | 4 | 3 | 4 | 3 | 0 | 3 | 23 | 24 | 4 | 13 | 7 | 3 | 7 | 7 | 4 | 3 | 1 | 4 | 0 | 3 |
21,850 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/branching/branching_io_manager.py | dagster._core.storage.branching.branching_io_manager.BranchingIOManager | from dagster._config.pythonic_config import ConfigurableIOManager, ResourceDependency
from typing import Any, Optional
from dagster import InputContext, OutputContext
from dagster._core.storage.io_manager import IOManager
class BranchingIOManager(ConfigurableIOManager):
"""A branching I/O manager composes two I/O ... |
class BranchingIOManager(ConfigurableIOManager):
'''A branching I/O manager composes two I/O managers.
1) The parent I/O manager, typically your production environment.
2) The branch I/O manager, typically a development or branched environment.
The objective of this to allow a developer to safely read ... | 3 | 1 | 31 | 3 | 22 | 7 | 4 | 0.6 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 139 | 90 | 13 | 48 | 7 | 45 | 29 | 24 | 7 | 21 | 5 | 10 | 2 | 7 |
21,851 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/cloud_storage_compute_log_manager.py | dagster._core.storage.cloud_storage_compute_log_manager.CloudStorageComputeLogManager | from typing import IO, Optional
from dagster._core.storage.local_compute_log_manager import IO_TYPE_EXTENSION, LocalComputeLogManager
import threading
from collections.abc import Iterator, Sequence
from contextlib import contextmanager
import sys
from dagster._core.instance import T_DagsterInstance
from dagster._utils.... |
class CloudStorageComputeLogManager(ComputeLogManager[T_DagsterInstance]):
'''Abstract class that uses the local compute log manager to capture logs and stores them in
remote cloud storage.
'''
@property
@abstractmethod
def local_manager(self) -> LocalComputeLogManager:
'''Returns a Loc... | 36 | 9 | 5 | 0 | 5 | 0 | 1 | 0.1 | 1 | 16 | 5 | 3 | 23 | 0 | 23 | 59 | 164 | 26 | 125 | 59 | 71 | 13 | 75 | 29 | 51 | 4 | 5 | 2 | 30 |
21,852 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/cloud_storage_compute_log_manager.py | dagster._core.storage.cloud_storage_compute_log_manager.PollingComputeLogSubscriptionManager | from collections.abc import Iterator, Sequence
from dagster._core.storage.compute_log_manager import CapturedLogContext, CapturedLogMetadata, CapturedLogSubscription, ComputeIOType, ComputeLogManager
import json
import threading
from collections import defaultdict
import time
class PollingComputeLogSubscriptionManager... |
class PollingComputeLogSubscriptionManager:
def __init__(self, manager):
pass
def _log_key(self, subscription: CapturedLogSubscription) -> Sequence[str]:
pass
def _watch_key(self, log_key: Sequence[str]) -> str:
pass
def _start_polling_thread(self) -> None:
pass
... | 13 | 0 | 7 | 1 | 6 | 0 | 2 | 0.03 | 0 | 7 | 1 | 0 | 12 | 4 | 12 | 12 | 91 | 17 | 73 | 28 | 60 | 2 | 67 | 28 | 54 | 6 | 0 | 4 | 28 |
21,853 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/compute_log_manager.py | dagster._core.storage.compute_log_manager.CapturedLogContext | import dagster._check as check
from collections.abc import Generator, Iterator, Sequence
from typing import IO, Callable, Final, NamedTuple, Optional
class CapturedLogContext(NamedTuple('_CapturedLogContext', [('log_key', Sequence[str]), ('external_url', Optional[str]), ('external_stdout_url', Optional[str]), ('extern... |
class CapturedLogContext(NamedTuple('_CapturedLogContext', [('log_key', Sequence[str]), ('external_url', Optional[str]), ('external_stdout_url', Optional[str]), ('external_stderr_url', Optional[str]), ('shell_cmd', Optional[LogRetrievalShellCommand])])):
'''Object representing the context in which logs are capture... | 2 | 1 | 22 | 1 | 21 | 0 | 2 | 0.12 | 1 | 4 | 1 | 0 | 1 | 0 | 1 | 1 | 39 | 2 | 33 | 20 | 13 | 4 | 5 | 2 | 3 | 2 | 1 | 1 | 2 |
21,854 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/compute_log_manager.py | dagster._core.storage.compute_log_manager.CapturedLogData | from typing import IO, Callable, Final, NamedTuple, Optional
from collections.abc import Generator, Iterator, Sequence
class CapturedLogData(NamedTuple('_CapturedLogData', [('log_key', Sequence[str]), ('stdout', Optional[bytes]), ('stderr', Optional[bytes]), ('cursor', Optional[str])])):
"""Object representing cap... |
class CapturedLogData(NamedTuple('_CapturedLogData', [('log_key', Sequence[str]), ('stdout', Optional[bytes]), ('stderr', Optional[bytes]), ('cursor', Optional[str])])):
'''Object representing captured log data, either a partial chunk of the log data or the full
capture. Contains the raw bytes and optionally ... | 2 | 1 | 8 | 0 | 8 | 0 | 1 | 0.16 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 1 | 23 | 1 | 19 | 18 | 1 | 3 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,855 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/compute_log_manager.py | dagster._core.storage.compute_log_manager.CapturedLogMetadata | from typing import IO, Callable, Final, NamedTuple, Optional
class CapturedLogMetadata(NamedTuple('_CapturedLogMetadata', [('stdout_location', Optional[str]), ('stderr_location', Optional[str]), ('stdout_download_url', Optional[str]), ('stderr_download_url', Optional[str])])):
"""Object representing metadata info ... |
class CapturedLogMetadata(NamedTuple('_CapturedLogMetadata', [('stdout_location', Optional[str]), ('stderr_location', Optional[str]), ('stdout_download_url', Optional[str]), ('stderr_download_url', Optional[str])])):
'''Object representing metadata info for the captured log data.
It can contain:
- a displ... | 2 | 1 | 14 | 0 | 14 | 0 | 1 | 0.2 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 31 | 1 | 25 | 18 | 7 | 5 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,856 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/compute_log_manager.py | dagster._core.storage.compute_log_manager.CapturedLogSubscription | from typing import IO, Callable, Final, NamedTuple, Optional
from collections.abc import Generator, Iterator, Sequence
from typing_extensions import Self
class CapturedLogSubscription:
def __init__(self, manager: 'ComputeLogManager[T_DagsterInstance]', log_key: Sequence[str], cursor: Optional[str]):
self.... |
class CapturedLogSubscription:
def __init__(self, manager: 'ComputeLogManager[T_DagsterInstance]', log_key: Sequence[str], cursor: Optional[str]):
pass
def __call__(self, observer: Optional[Callable[[CapturedLogData], None]]) -> Self:
pass
@property
def log_key(self) -> Sequence[str]:... | 8 | 0 | 7 | 0 | 6 | 0 | 2 | 0 | 0 | 3 | 1 | 0 | 6 | 5 | 6 | 6 | 46 | 6 | 40 | 20 | 27 | 0 | 30 | 14 | 23 | 4 | 0 | 2 | 10 |
21,857 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/compute_log_manager.py | dagster._core.storage.compute_log_manager.ComputeIOType | from enum import Enum
class ComputeIOType(Enum):
STDOUT = 'stdout'
STDERR = 'stderr' |
class ComputeIOType(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
21,858 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/compute_log_manager.py | dagster._core.storage.compute_log_manager.ComputeLogManager | from dagster._annotations import public
from dagster._core.instance import MayHaveInstanceWeakref, T_DagsterInstance
from contextlib import contextmanager
import os
from collections.abc import Generator, Iterator, Sequence
from typing import IO, Callable, Final, NamedTuple, Optional
from abc import ABC, abstractmethod
... | @public
class ComputeLogManager(ABC, MayHaveInstanceWeakref[T_DagsterInstance]):
'''Abstract base class for capturing the unstructured logs (stdout/stderr) in the current
process, stored / retrieved with a provided log_key.
'''
@abstractmethod
@contextmanager
def capture_logs(self, log_key: Sequ... | 27 | 13 | 14 | 1 | 8 | 4 | 2 | 0.5 | 2 | 16 | 6 | 4 | 16 | 0 | 16 | 36 | 252 | 37 | 143 | 73 | 87 | 72 | 73 | 36 | 56 | 11 | 4 | 3 | 29 |
21,859 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/compute_log_manager.py | dagster._core.storage.compute_log_manager.LogRetrievalShellCommand | from dagster._record import record
from typing import IO, Callable, Final, NamedTuple, Optional
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes
@record
class LogRetrievalShellCommand:
stdout: Optional[str]
stderr: Optional[str] | @whitelist_for_serdes
@record
class LogRetrievalShellCommand:
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 0 | 0 | 0 |
21,860 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/config.py | dagster._core.storage.config.MySqlStorageConfig | from typing_extensions import TypedDict
class MySqlStorageConfig(TypedDict):
mysql_url: str
mysql_db: 'MySqlStorageConfigDb' |
class MySqlStorageConfig(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
21,861 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/config.py | dagster._core.storage.config.MySqlStorageConfigDb | from typing_extensions import TypedDict
class MySqlStorageConfigDb(TypedDict):
username: str
password: str
hostname: str
db_name: str
port: int |
class MySqlStorageConfigDb(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 1 | 5 | 0 | 6 | 1 | 5 | 0 | 1 | 0 | 0 |
21,862 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/config.py | dagster._core.storage.config.PostgresStorageConfig | from typing_extensions import TypedDict
class PostgresStorageConfig(TypedDict):
postgres_url: str
postgres_db: 'PostgresStorageConfigDb' |
class PostgresStorageConfig(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
21,863 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/config.py | dagster._core.storage.config.PostgresStorageConfigDb | from typing_extensions import TypedDict
class PostgresStorageConfigDb(TypedDict):
username: str
password: str
hostname: str
db_name: str
port: int
params: dict[str, object]
scheme: str |
class PostgresStorageConfigDb(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0 | 8 | 1 | 7 | 0 | 8 | 1 | 7 | 0 | 1 | 0 | 0 |
21,864 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/daemon_cursor.py | dagster._core.storage.daemon_cursor.DaemonCursorStorage | from collections.abc import Mapping
from abc import abstractmethod
class DaemonCursorStorage:
@abstractmethod
def get_cursor_values(self, keys: set[str]) -> Mapping[str, str]:
"""Retrieve the value for a given key in the current deployment."""
@abstractmethod
def set_cursor_values(self, pairs... |
class DaemonCursorStorage:
@abstractmethod
def get_cursor_values(self, keys: set[str]) -> Mapping[str, str]:
'''Retrieve the value for a given key in the current deployment.'''
pass
@abstractmethod
def set_cursor_values(self, pairs: Mapping[str, str]) -> None:
'''Set the value ... | 5 | 2 | 2 | 0 | 1 | 1 | 1 | 0.4 | 0 | 3 | 0 | 1 | 2 | 0 | 2 | 2 | 8 | 1 | 5 | 5 | 0 | 2 | 3 | 3 | 0 | 1 | 0 | 0 | 2 |
21,865 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/dagster_run.py | dagster._core.storage.dagster_run.DagsterRun | from dagster._core.storage.tags import ASSET_EVALUATION_ID_TAG, AUTO_RETRY_RUN_ID_TAG, AUTOMATION_CONDITION_TAG, BACKFILL_ID_TAG, PARENT_RUN_ID_TAG, POOL_TAG_PREFIX, REPOSITORY_LABEL_TAG, RESUME_RETRY_TAG, ROOT_RUN_ID_TAG, SCHEDULE_NAME_TAG, SENSOR_NAME_TAG, TICK_ID_TAG, WILL_RETRY_TAG
from dagster_shared.record import... | @whitelist_for_serdes(serializer=DagsterRunSerializer, storage_name='PipelineRun', old_fields={'mode': None}, storage_field_names={'job_name': 'pipeline_name', 'job_snapshot_id': 'pipeline_snapshot_id', 'remote_job_origin': 'external_pipeline_origin', 'job_code_origin': 'pipeline_code_origin', 'op_selection': 'solid_se... | 43 | 9 | 12 | 1 | 9 | 2 | 2 | 0.28 | 1 | 10 | 4 | 0 | 16 | 1 | 20 | 20 | 317 | 41 | 216 | 95 | 126 | 60 | 83 | 30 | 60 | 6 | 1 | 2 | 34 |
21,866 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/dagster_run.py | dagster._core.storage.dagster_run.DagsterRunSerializer | import dagster._check as check
from dagster_shared.serdes import NamedTupleSerializer, whitelist_for_serdes
from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union
class DagsterRunSerializer(NamedTupleSerializer['DagsterRun']):
def before_unpack(self, context, unpacked_dict: dict[str, Any]... |
class DagsterRunSerializer(NamedTupleSerializer['DagsterRun']):
def before_unpack(self, context, unpacked_dict: dict[str, Any]) -> dict[str, Any]:
pass | 2 | 0 | 53 | 7 | 41 | 5 | 9 | 0.38 | 1 | 6 | 1 | 0 | 1 | 0 | 1 | 34 | 65 | 7 | 42 | 7 | 40 | 16 | 28 | 7 | 26 | 9 | 7 | 2 | 9 |
21,867 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/dagster_run.py | dagster._core.storage.dagster_run.DagsterRunStatsSnapshot | from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union
from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, copy, record, record_custom
from dagster_shared.serdes import NamedTupleSerializer, whitelist_for_serdes
@whitelist_for_serdes(storage_name='PipelineRunStatsSnapshot')
@rec... | @whitelist_for_serdes(storage_name='PipelineRunStatsSnapshot')
@record
class DagsterRunStatsSnapshot(IHaveNew):
pass | 3 | 0 | 24 | 0 | 24 | 0 | 1 | 0 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 1 | 40 | 0 | 40 | 28 | 12 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,868 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/dagster_run.py | dagster._core.storage.dagster_run.DagsterRunStatus | from dagster_shared.serdes import NamedTupleSerializer, whitelist_for_serdes
from dagster._annotations import PublicAttr, public
from enum import Enum
@whitelist_for_serdes(storage_name='PipelineRunStatus')
@public
class DagsterRunStatus(Enum):
"""The status of run execution."""
QUEUED = 'QUEUED'
NOT_START... | @whitelist_for_serdes(storage_name='PipelineRunStatus')
@public
class DagsterRunStatus(Enum):
'''The status of run execution.'''
pass | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 29 | 9 | 10 | 10 | 9 | 10 | 10 | 10 | 9 | 0 | 4 | 0 | 0 |
21,869 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/dagster_run.py | dagster._core.storage.dagster_run.ExecutionSelector | from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, copy, record, record_custom
from dagster_shared.serdes import NamedTupleSerializer, whitelist_for_serdes
from collections.abc import Iterable, Mapping, Sequence, Set
from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union
@white... | @whitelist_for_serdes
@record
class ExecutionSelector:
'''Kept here to maintain loading of PipelineRuns from when it was still alive.'''
pass | 3 | 1 | 10 | 0 | 10 | 0 | 2 | 0.08 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 15 | 1 | 13 | 4 | 9 | 1 | 3 | 2 | 1 | 2 | 1 | 0 | 2 |
21,870 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/dagster_run.py | dagster._core.storage.dagster_run.JobBucket | from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union
class JobBucket(NamedTuple):
job_names: list[str]
bucket_limit: Optional[int] |
class JobBucket(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
21,871 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/dagster_run.py | dagster._core.storage.dagster_run.RunPartitionData | from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, copy, record, record_custom
from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union
from dagster_shared.serdes import NamedTupleSerializer, whitelist_for_serdes
@whitelist_for_serdes
@record
class RunPartitionData:
run_id: s... | @whitelist_for_serdes
@record
class RunPartitionData:
pass | 3 | 0 | 16 | 0 | 16 | 0 | 1 | 0 | 1 | 4 | 1 | 0 | 1 | 0 | 1 | 1 | 28 | 0 | 28 | 20 | 8 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,872 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/dagster_run.py | dagster._core.storage.dagster_run.RunRecord | from datetime import datetime
from dagster._core.loader import LoadableBy, LoadingContext
from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union
from dagster._annotations import PublicAttr, public
from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, copy, record, record_custom
imp... | @public
@record(kw_only=False)
class RunRecord(IHaveNew, LegacyNamedTupleMixin, LoadableBy[str]):
'''Internal representation of a run record, as stored in a
:py:class:`~dagster._core.storage.runs.RunStorage`.
Users should not invoke this class directly.
'''
@classmethod
def _blocking_batch_l... | 5 | 1 | 16 | 2 | 13 | 1 | 2 | 0.15 | 2 | 10 | 2 | 0 | 1 | 0 | 2 | 2 | 53 | 6 | 41 | 30 | 14 | 6 | 9 | 6 | 6 | 2 | 1 | 1 | 3 |
21,873 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/dagster_run.py | dagster._core.storage.dagster_run.RunsFilter | import dagster._check as check
from collections.abc import Iterable, Mapping, Sequence, Set
from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union
from dagster._annotations import PublicAttr, public
from datetime import datetime
from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin,... | @public
@record_custom
class RunsFilter(IHaveNew):
'''Defines a filter across job runs, for use when querying storage directly.
Each field of the RunsFilter represents a logical AND with each other. For
example, if you specify job_name and tags, then you will receive only runs
with the specified job_nam... | 10 | 1 | 10 | 0 | 9 | 0 | 1 | 0.35 | 1 | 8 | 2 | 0 | 1 | 0 | 4 | 6 | 78 | 8 | 52 | 25 | 27 | 18 | 20 | 5 | 15 | 1 | 1 | 0 | 4 |
21,874 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/dagster_run.py | dagster._core.storage.dagster_run.TagBucket | from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union
class TagBucket(NamedTuple):
tag_key: str
tag_values: list[str]
bucket_limit: Optional[int] |
class TagBucket(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
21,875 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/db_io_manager.py | dagster._core.storage.db_io_manager.DbClient | from contextlib import contextmanager
from collections.abc import Iterator, Mapping, Sequence
from abc import ABC, abstractmethod
from dagster._core.execution.context.input import InputContext
from dagster._core.execution.context.output import OutputContext
from typing import Any, Generic, NamedTuple, Optional, TypeVar... |
class DbClient(Generic[T]):
@staticmethod
@abstractmethod
def delete_table_slice(context: OutputContext, table_slice: TableSlice, connection: T) -> None:
pass
@staticmethod
@abstractmethod
def get_select_statement(table_slice: TableSlice) -> str:
pass
@staticmethod
def ... | 16 | 1 | 4 | 0 | 3 | 1 | 1 | 0.16 | 1 | 5 | 3 | 4 | 0 | 0 | 5 | 7 | 34 | 5 | 25 | 17 | 7 | 4 | 13 | 6 | 7 | 2 | 1 | 1 | 6 |
21,876 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/db_io_manager.py | dagster._core.storage.db_io_manager.DbIOManager | from collections.abc import Iterator, Mapping, Sequence
from dagster._core.definitions.partitions.utils import MultiPartitionKey, TimeWindow
from dagster._core.execution.context.output import OutputContext
from dagster._core.execution.context.input import InputContext
import dagster._check as check
from typing import A... |
class DbIOManager(IOManager):
def __init__(self, *, type_handlers: Sequence[DbTypeHandler], db_client: DbClient, database: str, schema: Optional[str]=None, io_manager_name: Optional[str]=None, default_load_type: Optional[type]=None):
pass
def handle_output(self, context: OutputContext, obj: object) -... | 7 | 0 | 39 | 3 | 35 | 1 | 5 | 0.04 | 1 | 19 | 12 | 0 | 5 | 6 | 5 | 29 | 202 | 21 | 175 | 44 | 158 | 7 | 82 | 31 | 76 | 15 | 6 | 5 | 27 |
21,877 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/db_io_manager.py | dagster._core.storage.db_io_manager.DbTypeHandler | from typing import Any, Generic, NamedTuple, Optional, TypeVar, Union, cast
from dagster._core.execution.context.output import OutputContext
from abc import ABC, abstractmethod
from collections.abc import Iterator, Mapping, Sequence
from dagster._core.execution.context.input import InputContext
from dagster._core.defin... |
class DbTypeHandler(ABC, Generic[T]):
@abstractmethod
def handle_output(self, context: OutputContext, table_slice: TableSlice, obj: T, connection) -> Optional[Mapping[str, RawMetadataValue]]:
'''Stores the given object at the given table in the given schema.'''
pass
@abstractmethod
def... | 8 | 2 | 3 | 0 | 2 | 1 | 1 | 0.18 | 2 | 6 | 3 | 13 | 3 | 0 | 3 | 25 | 15 | 2 | 11 | 9 | 1 | 2 | 5 | 4 | 1 | 1 | 4 | 0 | 3 |
21,878 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/db_io_manager.py | dagster._core.storage.db_io_manager.TablePartitionDimension | from collections.abc import Iterator, Mapping, Sequence
from typing import Any, Generic, NamedTuple, Optional, TypeVar, Union, cast
from dagster._core.definitions.partitions.utils import MultiPartitionKey, TimeWindow
class TablePartitionDimension(NamedTuple):
partition_expr: str
partitions: Union[TimeWindow, S... |
class TablePartitionDimension(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
21,879 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/db_io_manager.py | dagster._core.storage.db_io_manager.TableSlice | from collections.abc import Iterator, Mapping, Sequence
from typing import Any, Generic, NamedTuple, Optional, TypeVar, Union, cast
class TableSlice(NamedTuple):
table: str
schema: str
database: Optional[str] = None
columns: Optional[Sequence[str]] = None
partition_dimensions: Optional[Sequence[Tab... |
class TableSlice(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 4 | 5 | 0 | 6 | 4 | 5 | 0 | 1 | 0 | 0 |
21,880 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/event_log/base.py | dagster._core.storage.event_log.base.AssetCheckSummaryRecord | from dagster._core.loader import LoadableBy, LoadingContext
from dagster._core.storage.asset_check_execution_record import AssetCheckExecutionRecord, AssetCheckExecutionRecordStatus
from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey
from typing import TYPE_CHECKING, AbstractSet, NamedTupl... |
class AssetCheckSummaryRecord(NamedTuple('_AssetCheckSummaryRecord', [('asset_check_key', AssetCheckKey), ('last_check_execution_record', Optional[AssetCheckExecutionRecord]), ('last_run_id', Optional[str]), ('last_completed_check_execution_record', Optional[AssetCheckExecutionRecord])]), LoadableBy[AssetCheckKey]):
... | 5 | 0 | 7 | 0 | 7 | 0 | 2 | 0 | 2 | 3 | 0 | 0 | 1 | 0 | 2 | 2 | 28 | 1 | 27 | 19 | 9 | 0 | 6 | 4 | 3 | 2 | 1 | 0 | 3 |
21,881 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/event_log/base.py | dagster._core.storage.event_log.base.AssetEntry | import dagster._check as check
from dagster._core.event_api import AssetRecordsFilter, EventHandlerFn, EventLogCursor, EventLogRecord, EventRecordsFilter, EventRecordsResult, RunStatusChangeRecordsFilter
from dagster._core.assets import AssetDetails
from dagster._core.definitions.events import AssetKey
from typing impo... |
class AssetEntry(NamedTuple('_AssetEntry', [('asset_key', AssetKey), ('last_materialization_record', Optional[EventLogRecord]), ('last_run_id', Optional[str]), ('asset_details', Optional[AssetDetails]), ('cached_status', Optional['AssetStatusCacheValue']), ('last_observation_record', Optional[EventLogRecord]), ('last_... | 16 | 1 | 13 | 0 | 12 | 0 | 2 | 0.03 | 1 | 6 | 3 | 0 | 4 | 0 | 4 | 4 | 73 | 4 | 67 | 33 | 34 | 2 | 16 | 6 | 10 | 2 | 1 | 1 | 7 |
21,882 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/event_log/base.py | dagster._core.storage.event_log.base.AssetRecord | from dagster._annotations import public
from collections.abc import Iterable, Mapping, Sequence
from dagster._core.loader import LoadableBy, LoadingContext
from dagster._record import record
from typing import TYPE_CHECKING, AbstractSet, NamedTuple, Optional, Union
from dagster._core.definitions.events import AssetKey
... | @public
class AssetRecord(NamedTuple('_NamedTuple', [('storage_id', int), ('asset_entry', AssetEntry)]), LoadableBy[AssetKey]):
'''Internal representation of an asset record, as stored in a :py:class:`~dagster._core.storage.event_log.EventLogStorage`.
Users should not invoke this class directly.
'''
... | 4 | 1 | 8 | 0 | 8 | 0 | 1 | 0.23 | 2 | 2 | 0 | 0 | 0 | 0 | 1 | 1 | 18 | 2 | 13 | 10 | 5 | 3 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
21,883 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/event_log/base.py | dagster._core.storage.event_log.base.EventLogConnection | from collections.abc import Iterable, Mapping, Sequence
from typing import TYPE_CHECKING, AbstractSet, NamedTuple, Optional, Union
from dagster._core.event_api import AssetRecordsFilter, EventHandlerFn, EventLogCursor, EventLogRecord, EventRecordsFilter, EventRecordsResult, RunStatusChangeRecordsFilter
class EventLogC... |
class EventLogConnection(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
21,884 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/event_log/base.py | dagster._core.storage.event_log.base.EventLogStorage | from dagster._utils.warnings import deprecation_warning
from typing import TYPE_CHECKING, AbstractSet, NamedTuple, Optional, Union
from dagster._core.instance import MayHaveInstanceWeakref, T_DagsterInstance
from dagster._record import record
from abc import ABC, abstractmethod
from collections.abc import Iterable, Map... | @public
class EventLogStorage(ABC, MayHaveInstanceWeakref[T_DagsterInstance]):
'''Abstract base class for storing structured event logs from pipeline runs.
Note that event log storages using SQL databases as backing stores should implement
:py:class:`~dagster._core.storage.event_log.SqlEventLogStorage`.
... | 139 | 42 | 5 | 0 | 4 | 1 | 1 | 0.21 | 2 | 28 | 16 | 2 | 72 | 1 | 72 | 92 | 509 | 83 | 352 | 257 | 106 | 74 | 157 | 83 | 84 | 7 | 4 | 3 | 82 |
21,885 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/event_log/base.py | dagster._core.storage.event_log.base.PlannedMaterializationInfo | from typing import TYPE_CHECKING, AbstractSet, NamedTuple, Optional, Union
class PlannedMaterializationInfo(NamedTuple):
"""Internal representation of an planned materialization event, containing storage_id / run_id.
Users should not invoke this class directly.
"""
storage_id: int
run_id: str |
class PlannedMaterializationInfo(NamedTuple):
'''Internal representation of an planned materialization event, containing storage_id / run_id.
Users should not invoke this class directly.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 2 | 3 | 1 | 2 | 3 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
21,886 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/event_log/base.py | dagster._core.storage.event_log.base.PoolLimit | from dagster._record import record
@record
class PoolLimit:
name: str
limit: int
from_default: bool | @record
class PoolLimit:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 0 | 0 | 0 |
21,887 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/event_log/in_memory.py | dagster._core.storage.event_log.in_memory.InMemoryEventLogStorage | import sqlalchemy as db
from dagster._core.storage.event_log.base import EventLogCursor
from dagster._core.storage.sql import create_engine, get_alembic_config, stamp_alembic_rev
from dagster._core.storage.sqlite import create_in_memory_conn_string
from sqlalchemy.pool import NullPool
from dagster._core.storage.event_l... |
class InMemoryEventLogStorage(SqlEventLogStorage, ConfigurableClass):
'''In memory only event log storage. Used by ephemeral DagsterInstance or for testing purposes.
WARNING: The Dagster UI and other core functionality will not work if this is used on a real DagsterInstance
'''
def __init__(self, inst... | 23 | 1 | 4 | 0 | 4 | 0 | 1 | 0.07 | 2 | 9 | 2 | 0 | 14 | 5 | 16 | 224 | 92 | 20 | 68 | 35 | 45 | 5 | 59 | 27 | 42 | 4 | 6 | 3 | 22 |
21,888 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/event_log/polling_event_watcher.py | dagster._core.storage.event_log.polling_event_watcher.CallbackAfterCursor | from dagster._core.events.log import EventLogEntry
from typing import TYPE_CHECKING, Callable, NamedTuple, Optional
class CallbackAfterCursor(NamedTuple):
"""Callback passed from Observer class in event polling.
cursor (str): Only process EventLogEntrys after the given cursor
callback (Callable[[EventLogE... |
class CallbackAfterCursor(NamedTuple):
'''Callback passed from Observer class in event polling.
cursor (str): Only process EventLogEntrys after the given cursor
callback (Callable[[EventLogEntry], None]): callback passed from Observer
to call on new EventLogEntrys, with a string cursor
'''
... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.67 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 3 | 1 | 2 | 5 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
21,889 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/event_log/polling_event_watcher.py | dagster._core.storage.event_log.polling_event_watcher.SqlPollingEventWatcher | from dagster._core.events.log import EventLogEntry
from dagster._core.storage.event_log.base import EventLogCursor, EventLogStorage
import threading
import dagster._check as check
from typing import TYPE_CHECKING, Callable, NamedTuple, Optional
class SqlPollingEventWatcher:
"""Event Log Watcher that uses a multith... |
class SqlPollingEventWatcher:
'''Event Log Watcher that uses a multithreaded polling approach to retrieving new events for run_ids
This class' job is to manage a collection of threads that each poll the event log for a given run_id
Uses one thread (SqlPollingRunIdEventWatcherThread) per watched run_id.
... | 6 | 1 | 11 | 0 | 10 | 0 | 2 | 0.15 | 0 | 6 | 3 | 0 | 5 | 4 | 5 | 5 | 69 | 8 | 53 | 22 | 38 | 8 | 40 | 13 | 34 | 5 | 0 | 4 | 12 |
21,890 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/event_log/polling_event_watcher.py | dagster._core.storage.event_log.polling_event_watcher.SqlPollingRunIdEventWatcherThread | from dagster._core.events.log import EventLogEntry
from typing import TYPE_CHECKING, Callable, NamedTuple, Optional
from dagster._core.storage.event_log.base import EventLogCursor, EventLogStorage
import dagster._check as check
import os
import threading
class SqlPollingRunIdEventWatcherThread(threading.Thread):
"... |
class SqlPollingRunIdEventWatcherThread(threading.Thread):
'''subclass of Thread that watches a given run_id for new Events by polling every POLLING_CADENCE.
Holds a list of callbacks (_callback_fn_list) each passed in by an `Observer`. Note that
the callbacks have a cursor associated; this means that ... | 7 | 4 | 15 | 1 | 10 | 4 | 2 | 0.49 | 1 | 9 | 4 | 0 | 5 | 6 | 5 | 30 | 92 | 13 | 53 | 19 | 46 | 26 | 35 | 18 | 29 | 6 | 1 | 5 | 11 |
21,891 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/event_log/sql_event_log.py | dagster._core.storage.event_log.sql_event_log.SqlEventLogStorage | from dagster._core.errors import DagsterEventLogInvalidForRun, DagsterInvalidInvocationError, DagsterInvariantViolationError
from datetime import datetime, timezone
from dagster._core.definitions.data_version import DATA_VERSION_TAG
from functools import cached_property
from typing import TYPE_CHECKING, AbstractSet, An... |
class SqlEventLogStorage(EventLogStorage):
'''Base class for SQL backed event log storages.
Distinguishes between run-based connections and index connections in order to support run-level
sharding, while maintaining the ability to do cross-run queries
'''
@abstractmethod
def run_connection(self... | 125 | 31 | 27 | 2 | 22 | 3 | 3 | 0.11 | 1 | 45 | 25 | 5 | 113 | 0 | 113 | 205 | 3,128 | 339 | 2,528 | 649 | 2,211 | 289 | 1,019 | 382 | 904 | 15 | 5 | 4 | 358 |
21,892 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/event_log/sqlite/consolidated_sqlite_event_log.py | dagster._core.storage.event_log.sqlite.consolidated_sqlite_event_log.ConsolidatedSqliteEventLogStorage | from dagster._config import StringSource
from typing import Any, Optional
from dagster._core.storage.sql import check_alembic_revision, create_engine, get_alembic_config, run_alembic_upgrade, stamp_alembic_rev
from dagster._core.storage.dagster_run import DagsterRunStatus
from functools import cached_property
from coll... | @public
class ConsolidatedSqliteEventLogStorage(SqlEventLogStorage, ConfigurableClass):
'''SQLite-backed consolidated event log storage intended for test cases only.
Users should not directly instantiate this class; it is instantiated by internal machinery when
``dagster-webserver`` and ``dagster-graphql`` ... | 25 | 1 | 6 | 1 | 6 | 0 | 2 | 0.15 | 2 | 9 | 2 | 0 | 16 | 6 | 18 | 226 | 159 | 32 | 110 | 51 | 84 | 17 | 90 | 38 | 71 | 6 | 6 | 3 | 31 |
21,893 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/event_log/sqlite/consolidated_sqlite_event_log.py | dagster._core.storage.event_log.sqlite.consolidated_sqlite_event_log.ConsolidatedSqliteEventLogStorageWatchdog | import dagster._check as check
from watchdog.events import PatternMatchingEventHandler
class ConsolidatedSqliteEventLogStorageWatchdog(PatternMatchingEventHandler):
def __init__(self, event_log_storage, **kwargs):
self._event_log_storage = check.inst_param(event_log_storage, 'event_log_storage', Consolida... |
class ConsolidatedSqliteEventLogStorageWatchdog(PatternMatchingEventHandler):
def __init__(self, event_log_storage, **kwargs):
pass
def on_modified(self, event):
pass | 3 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 2 | 2 | 2 | 2 | 11 | 1 | 10 | 5 | 7 | 0 | 8 | 5 | 5 | 1 | 1 | 0 | 2 |
21,894 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/event_log/sqlite/sqlite_event_log.py | dagster._core.storage.event_log.sqlite.sqlite_event_log.SqliteEventLogStorage | import re
from dagster._core.events.log import EventLogEntry
from dagster._core.storage.dagster_run import DagsterRunStatus, RunsFilter
import glob
from sqlalchemy.engine import Connection, Engine
from dagster._core.instance import RUNLESS_RUN_ID
import contextlib
from sqlalchemy.pool import NullPool
from dagster_share... |
class SqliteEventLogStorage(SqlEventLogStorage, ConfigurableClass):
'''SQLite-backed event log storage.
Users should not directly instantiate this class; it is instantiated by internal machinery when
``dagster-webserver`` and ``dagster-graphql`` load, based on the values in the ``dagster.yaml`` file insqli... | 34 | 4 | 15 | 2 | 12 | 2 | 2 | 0.21 | 2 | 22 | 9 | 1 | 24 | 6 | 26 | 234 | 437 | 73 | 307 | 108 | 256 | 63 | 201 | 75 | 174 | 12 | 6 | 5 | 62 |
21,895 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/event_log/sqlite/sqlite_event_log.py | dagster._core.storage.event_log.sqlite.sqlite_event_log.SqliteEventLogStorageWatchdog | from typing import TYPE_CHECKING, Any, ContextManager, Optional, Union
from dagster._core.storage.event_log.base import EventLogCursor, EventLogRecord, EventRecordsFilter
import dagster._check as check
from watchdog.events import FileSystemEvent, PatternMatchingEventHandler
import logging
from dagster._core.storage.dag... |
class SqliteEventLogStorageWatchdog(PatternMatchingEventHandler):
def __init__(self, event_log_storage: SqliteEventLogStorage, run_id: str, callback: EventHandlerFn, cursor: Optional[str], **kwargs: Any):
pass
def _process_log(self) -> None:
pass
def on_modified(self, event: FileSystemEv... | 4 | 0 | 13 | 0 | 12 | 0 | 2 | 0 | 1 | 6 | 2 | 0 | 3 | 5 | 3 | 3 | 41 | 3 | 38 | 19 | 27 | 0 | 23 | 12 | 19 | 5 | 1 | 2 | 7 |
21,896 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/file_manager.py | dagster._core.storage.file_manager.FileHandle | from dagster._annotations import public
from abc import ABC, abstractmethod
@public
class FileHandle(ABC):
"""A reference to a file as manipulated by a FileManager.
Subclasses may handle files that are resident on the local file system, in an object store, or
in any arbitrary place where a file can be sto... | @public
class FileHandle(ABC):
'''A reference to a file as manipulated by a FileManager.
Subclasses may handle files that are resident on the local file system, in an object store, or
in any arbitrary place where a file can be stored.
This exists to handle the very common case where you wish to write a ... | 6 | 2 | 3 | 0 | 2 | 1 | 1 | 1.5 | 1 | 2 | 0 | 4 | 1 | 0 | 1 | 21 | 18 | 3 | 6 | 3 | 1 | 9 | 3 | 2 | 1 | 1 | 4 | 0 | 1 |
21,897 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/file_manager.py | dagster._core.storage.file_manager.FileManager | from typing import BinaryIO, ContextManager, Optional, TextIO, Union
from dagster._annotations import public
from abc import ABC, abstractmethod
@public
class FileManager(ABC):
"""Base class for all file managers in dagster.
The file manager is an interface that can be implemented by resources to provide abst... | @public
class FileManager(ABC):
'''Base class for all file managers in dagster.
The file manager is an interface that can be implemented by resources to provide abstract
access to a file system such as local disk, S3, or other cloud storage.
For examples of usage, see the documentation of the concrete f... | 20 | 7 | 13 | 2 | 2 | 9 | 1 | 2.32 | 1 | 4 | 1 | 4 | 6 | 0 | 6 | 26 | 105 | 22 | 25 | 13 | 6 | 58 | 13 | 7 | 6 | 1 | 4 | 0 | 6 |
21,898 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/file_manager.py | dagster._core.storage.file_manager.LocalFileHandle | from dagster._annotations import public
import dagster._check as check
@public
class LocalFileHandle(FileHandle):
"""A reference to a file on a local filesystem."""
def __init__(self, path: str):
self._path = check.str_param(path, 'path')
@public
@property
def path(self) -> str:
"... | @public
class LocalFileHandle(FileHandle):
'''A reference to a file on a local filesystem.'''
def __init__(self, path: str):
pass
@public
@property
def path(self) -> str:
'''The file's path.'''
pass
@public
@property
def path_desc(self) -> str:
'''A repre... | 9 | 3 | 3 | 0 | 2 | 1 | 1 | 0.27 | 1 | 1 | 0 | 0 | 3 | 1 | 3 | 24 | 17 | 3 | 11 | 7 | 3 | 3 | 7 | 5 | 3 | 1 | 5 | 0 | 3 |
21,899 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/storage/file_manager.py | dagster._core.storage.file_manager.LocalFileManager | from dagster._core.instance import DagsterInstance
from dagster._utils import mkdir_p
import uuid
import dagster._check as check
import os
import shutil
from contextlib import contextmanager
from dagster._core.storage.temp_file_manager import TempfileManager
from typing import BinaryIO, ContextManager, Optional, TextIO... |
class LocalFileManager(FileManager):
def __init__(self, base_dir: str):
pass
@staticmethod
def for_instance(instance: DagsterInstance, run_id: str) -> 'LocalFileManager':
pass
def ensure_base_dir_exists(self) -> None:
pass
def copy_handle_to_local_temp(self, file_handle: ... | 12 | 0 | 6 | 1 | 5 | 1 | 1 | 0.1 | 1 | 7 | 4 | 0 | 8 | 3 | 9 | 35 | 65 | 14 | 51 | 26 | 37 | 5 | 45 | 18 | 35 | 3 | 5 | 1 | 13 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.