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,600 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/context/system.py | dagster._core.execution.context.system.ExecutionData | from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union, cast
from dagster._core.definitions.job_definition import JobDefinition
from dagster._core.system_config.objects import ResolvedRunConfig
from dagster._core.definitions.resource_definition import ScopedResourcesBuilder
from dagster._core.d... |
class ExecutionData(NamedTuple):
'''The data that is available to the system during execution.
This object contains information that requires access to user code, such as the pipeline
definition and resources.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 5 | 1 | 4 | 4 | 5 | 1 | 4 | 0 | 1 | 0 | 0 |
21,601 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/context/system.py | dagster._core.execution.context.system.IPlanContext | from dagster._core.execution.plan.outputs import StepOutputHandle
from dagster._core.execution.step_dependency_config import StepDependencyConfig
from dagster._core.log_manager import DagsterLogManager
from dagster._core.execution.retries import RetryMode
import dagster._check as check
from collections.abc import Itera... |
class IPlanContext(ABC):
'''Context interface to represent run information that does not require access to user code.
The information available via this interface is accessible to the system throughout a run.
'''
@property
@abstractmethod
def plan_data(self) -> 'PlanData':
pass
@pro... | 37 | 1 | 2 | 0 | 2 | 0 | 1 | 0.06 | 1 | 6 | 1 | 3 | 17 | 0 | 17 | 37 | 75 | 18 | 54 | 33 | 19 | 3 | 37 | 18 | 19 | 1 | 4 | 0 | 17 |
21,602 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/context/system.py | dagster._core.execution.context.system.IStepContext | from dagster._core.execution.plan.step import ExecutionStep
from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union, cast
from abc import ABC, abstractmethod
from dagster._core.definitions.policy import RetryPolicy
class IStepContext(IPlanContext):
"""Interface to represent data to be avail... |
class IStepContext(IPlanContext):
'''Interface to represent data to be available during either step orchestration or execution.'''
@property
@abstractmethod
def step(self) -> ExecutionStep:
pass
@property
@abstractmethod
def node_handle(self) -> 'NodeHandle':
pass
@prope... | 9 | 1 | 3 | 0 | 2 | 1 | 1 | 0.42 | 1 | 2 | 1 | 2 | 3 | 0 | 3 | 40 | 20 | 3 | 12 | 7 | 3 | 5 | 7 | 4 | 3 | 1 | 5 | 0 | 3 |
21,603 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/context/system.py | dagster._core.execution.context.system.PlanData | from dagster._core.storage.dagster_run import DagsterRun
from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union, cast
from dagster._core.definitions.job_base import IJob
from dagster._core.execution.step_dependency_config import StepDependencyConfig
from dagster._core.execution.retries import R... |
class PlanData(NamedTuple):
'''The data about a run that is available during both orchestration and execution.
This object does not contain any information that requires access to user code, such as the
pipeline definition and resources.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.57 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 2 | 7 | 3 | 6 | 4 | 7 | 3 | 6 | 0 | 1 | 0 | 0 |
21,604 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/context/system.py | dagster._core.execution.context.system.PlanExecutionContext | from dagster._core.execution.plan.step import ExecutionStep
from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union, cast
from dagster._core.execution.plan.outputs import StepOutputHandle
from dagster._core.storage.tags import ASSET_PARTITION_RANGE_END_TAG, ASSET_PARTITION_RANGE_START_TAG, MULTI... |
class PlanExecutionContext(IPlanContext):
'''Context for the execution of a plan.
This context assumes that user code can be run directly, and thus includes resource and
information.
'''
def __init__(self, plan_data: PlanData, execution_data: ExecutionData, log_manager: DagsterLogManager, output_c... | 26 | 1 | 5 | 0 | 5 | 0 | 1 | 0.1 | 1 | 10 | 7 | 1 | 13 | 4 | 13 | 50 | 93 | 15 | 71 | 39 | 37 | 7 | 32 | 19 | 18 | 1 | 5 | 0 | 13 |
21,605 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/context/system.py | dagster._core.execution.context.system.PlanOrchestrationContext | from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union, cast
from dagster._core.definitions.reconstruct import ReconstructableJob
from dagster._core.execution.plan.outputs import StepOutputHandle
from dagster._core.execution.plan.step import ExecutionStep
from dagster._core.log_manager import D... |
class PlanOrchestrationContext(IPlanContext):
'''Context for the orchestration of a run.
This context assumes inability to run user code directly.
'''
def __init__(self, plan_data: PlanData, log_manager: DagsterLogManager, executor: Executor, output_capture: Optional[dict[StepOutputHandle, Any]], resu... | 15 | 1 | 5 | 0 | 5 | 0 | 1 | 0.07 | 1 | 8 | 5 | 1 | 8 | 5 | 8 | 45 | 56 | 9 | 44 | 27 | 22 | 3 | 23 | 14 | 14 | 2 | 5 | 1 | 9 |
21,606 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/context/system.py | dagster._core.execution.context.system.StepExecutionContext | from dagster._core.definitions.partitions.utils import TimeWindow, has_one_dimension_time_window_partitioning, infer_partition_mapping
from dagster._core.definitions.hook_definition import HookDefinition
from dagster._core.execution.context.data_version_cache import DataVersionCache, InputAssetVersionInfo
from dagster.... |
class StepExecutionContext(PlanExecutionContext, IStepContext):
'''Context for the execution of a step. Users should not instantiate this class directly.
This context assumes that user code can be run directly, and thus includes resource and information.
'''
def __init__(self, plan_data: PlanData, exe... | 100 | 10 | 11 | 1 | 10 | 1 | 2 | 0.09 | 2 | 32 | 20 | 1 | 69 | 21 | 69 | 122 | 903 | 133 | 704 | 240 | 547 | 66 | 348 | 150 | 274 | 9 | 6 | 3 | 143 |
21,607 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/context/system.py | dagster._core.execution.context.system.StepOrchestrationContext | from dagster._core.execution.plan.step import ExecutionStep
from dagster._core.execution.plan.outputs import StepOutputHandle
from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union, cast
from dagster._core.executor.base import Executor
from dagster._core.log_manager import DagsterLogManager
cl... |
class StepOrchestrationContext(PlanOrchestrationContext, IStepContext):
'''Context for the orchestration of a step.
This context assumes inability to run user code directly. Thus, it does not include any resource
information.
'''
def __init__(self, plan_data: PlanData, log_manager: DagsterLogManag... | 6 | 1 | 5 | 0 | 5 | 0 | 1 | 0.24 | 2 | 6 | 3 | 0 | 3 | 1 | 3 | 51 | 25 | 4 | 17 | 14 | 4 | 4 | 8 | 5 | 4 | 1 | 6 | 0 | 3 |
21,608 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/context/system.py | dagster._core.execution.context.system.TypeCheckContext | from dagster._annotations import public
from dagster._core.types.dagster_type import DagsterType
from dagster._core.definitions.resource_definition import ScopedResourcesBuilder
from dagster._core.log_manager import DagsterLogManager
@public
class TypeCheckContext:
"""The ``context`` object available to a type che... | @public
class TypeCheckContext:
'''The ``context`` object available to a type check function on a DagsterType.'''
def __init__(self, run_id: str, log_manager: DagsterLogManager, scoped_resources_builder: ScopedResourcesBuilder, dagster_type: DagsterType):
pass
@public
@property
def resource... | 12 | 4 | 5 | 0 | 4 | 1 | 1 | 0.17 | 0 | 1 | 0 | 0 | 4 | 3 | 4 | 4 | 31 | 4 | 23 | 17 | 6 | 4 | 11 | 8 | 6 | 1 | 0 | 0 | 4 |
21,609 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/context_creation_job.py | dagster._core.execution.context_creation_job.ContextCreationData | from dagster._core.definitions import ExecutorDefinition, JobDefinition
from dagster._core.system_config.objects import ResolvedRunConfig
from dagster._core.execution.plan.plan import ExecutionPlan
from dagster._core.instance import DagsterInstance
from dagster._core.definitions.job_base import IJob
from typing import ... |
class ContextCreationData(NamedTuple):
@property
def job_def(self) -> JobDefinition:
pass
@property
def repository_def(self) -> Optional[RepositoryDefinition]:
pass | 5 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 2 | 0 | 2 | 2 | 16 | 2 | 14 | 5 | 9 | 0 | 12 | 3 | 9 | 1 | 1 | 0 | 2 |
21,610 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/context_creation_job.py | dagster._core.execution.context_creation_job.ExecutionContextManager | from collections.abc import Generator, Iterable, Iterator, Mapping, Sequence
from abc import ABC, abstractmethod
from dagster._core.execution.context.system import ExecutionData, IPlanContext, PlanData, PlanExecutionContext, PlanOrchestrationContext
from dagster._utils import EventGenerationManager
from dagster._core.e... |
class ExecutionContextManager(Generic[TContextType], ABC):
def __init__(self, event_generator: Iterator[Union[DagsterEvent, TContextType]], raise_on_error: Optional[bool]=False):
pass
@property
@abstractmethod
def context_type(self) -> type[TContextType]:
pass
def prepare_context(... | 9 | 0 | 3 | 0 | 3 | 0 | 1 | 0.05 | 2 | 4 | 0 | 2 | 6 | 1 | 6 | 28 | 26 | 5 | 21 | 13 | 8 | 1 | 13 | 8 | 6 | 1 | 4 | 0 | 6 |
21,611 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/context_creation_job.py | dagster._core.execution.context_creation_job.PlanExecutionContextManager | from dagster._core.instance import DagsterInstance
from dagster._core.storage.dagster_run import DagsterRun
from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
from dagster._core.execution.step_dependency_config import StepDependencyConfig
from dagster._util... |
class PlanExecutionContextManager(ExecutionContextManager[PlanExecutionContext]):
def __init__(self, job: IJob, execution_plan: ExecutionPlan, run_config: Mapping[str, object], dagster_run: DagsterRun, instance: DagsterInstance, retry_mode: RetryMode, scoped_resources_builder_cm: Optional[Callable[..., EventGener... | 4 | 0 | 15 | 0 | 15 | 0 | 1 | 0 | 1 | 6 | 0 | 0 | 2 | 0 | 2 | 30 | 32 | 1 | 31 | 17 | 14 | 0 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
21,612 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/context_creation_job.py | dagster._core.execution.context_creation_job.PlanOrchestrationContextManager | from dagster._core.events import DagsterEvent, RunFailureReason
from dagster._core.instance import DagsterInstance
from collections.abc import Generator, Iterable, Iterator, Mapping, Sequence
from dagster._core.execution.context.system import ExecutionData, IPlanContext, PlanData, PlanExecutionContext, PlanOrchestratio... |
class PlanOrchestrationContextManager(ExecutionContextManager[PlanOrchestrationContext]):
def __init__(self, context_event_generator: Callable[..., Iterator[Union[DagsterEvent, PlanOrchestrationContext]]], job: IJob, execution_plan: ExecutionPlan, run_config: Mapping[str, object], dagster_run: DagsterRun, instanc... | 4 | 0 | 15 | 0 | 15 | 0 | 1 | 0 | 1 | 8 | 0 | 0 | 2 | 0 | 2 | 30 | 33 | 1 | 32 | 20 | 13 | 0 | 6 | 4 | 3 | 1 | 5 | 0 | 2 |
21,613 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/execute_in_process_result.py | dagster._core.execution.execute_in_process_result.ExecuteInProcessResult | from dagster._core.errors import DagsterInvariantViolationError
from typing import Any, Optional
from dagster._core.definitions.events import AssetKey, CoercibleToAssetKey
from collections.abc import Mapping, Sequence
from dagster._core.execution.execution_result import ExecutionResult
from dagster._core.definitions im... | @public
class ExecuteInProcessResult(ExecutionResult):
'''Result object returned by in-process testing APIs.
Users should not instantiate this object directly. Used for retrieving run success, events, and outputs from execution methods that return this object.
This object is returned by:
- :py:meth:`dag... | 22 | 8 | 11 | 1 | 7 | 3 | 2 | 0.49 | 1 | 7 | 2 | 0 | 9 | 0 | 9 | 60 | 135 | 22 | 76 | 31 | 49 | 37 | 44 | 18 | 34 | 6 | 5 | 3 | 14 |
21,614 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/execution_result.py | dagster._core.execution.execution_result.ExecutionResult | from dagster_shared.error import DagsterError
from typing import AbstractSet, Callable, Optional, cast
from abc import ABC, abstractmethod
from dagster._core.definitions.utils import DEFAULT_OUTPUT
from dagster._core.events import AssetObservationData, DagsterEvent, DagsterEventType, ExpectationResult, StepExpectationR... |
class ExecutionResult(ABC):
@property
@abstractmethod
def job_def(self) -> JobDefinition:
pass
@property
@abstractmethod
def dagster_run(self) -> DagsterRun:
pass
@property
@abstractmethod
def all_events(self) -> Sequence[DagsterEvent]:
pass
@property
... | 45 | 6 | 6 | 0 | 5 | 1 | 1 | 0.12 | 1 | 8 | 0 | 2 | 31 | 0 | 31 | 51 | 216 | 43 | 154 | 62 | 113 | 19 | 105 | 55 | 72 | 3 | 4 | 2 | 44 |
21,615 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/job_execution_result.py | dagster._core.execution.job_execution_result.JobExecutionResult | from dagster._core.execution.context.system import PlanExecutionContext, StepExecutionContext
from dagster._core.definitions import JobDefinition, NodeHandle
from dagster._core.execution.execution_result import ExecutionResult
from dagster._core.definitions.utils import DEFAULT_OUTPUT
from dagster._core.errors import D... | @public
class JobExecutionResult(ExecutionResult):
'''Result object returned by :py:func:`dagster.execute_job`.
Used for retrieving run success, events, and outputs from `execute_job`.
Users should not directly instantiate this class.
Events and run information can be retrieved off of the object directl... | 23 | 7 | 11 | 1 | 8 | 2 | 2 | 0.29 | 1 | 6 | 1 | 0 | 11 | 5 | 11 | 62 | 155 | 21 | 104 | 49 | 71 | 30 | 56 | 32 | 44 | 7 | 5 | 4 | 17 |
21,616 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/active.py | dagster._core.execution.plan.active.ActiveExecution | from dagster._core.events import DagsterEvent
from dagster._core.execution.plan.step import ExecutionStep
from dagster._core.storage.tags import GLOBAL_CONCURRENCY_TAG, PRIORITY_TAG
from collections.abc import Iterator, Mapping, Sequence
from dagster._core.execution.plan.state import KnownExecutionState
from dagster._c... |
class ActiveExecution:
'''State machine used to track progress through execution of an ExecutionPlan.'''
def __init__(self, execution_plan: ExecutionPlan, retry_mode: RetryMode, sort_key_fn: Optional[Callable[[ExecutionStep], float]]=None, max_concurrent: Optional[int]=None, tag_concurrency_limits: Optional[l... | 42 | 5 | 16 | 2 | 13 | 1 | 3 | 0.09 | 0 | 18 | 4 | 0 | 35 | 27 | 35 | 35 | 615 | 100 | 475 | 149 | 414 | 42 | 307 | 124 | 271 | 13 | 0 | 3 | 116 |
21,617 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/execute_step.py | dagster._core.execution.plan.execute_step.AssetResultOutput | from dagster._core.definitions import AssetCheckEvaluation, AssetCheckSeverity, AssetKey, AssetMaterialization, AssetObservation, ExpectationResult, Output, OutputDefinition, TypeCheck
class AssetResultOutput(Output):
"""This is a marker subclass that represents an Output that was produced from an AssetResult.""" |
class AssetResultOutput(Output):
'''This is a marker subclass that represents an Output that was produced from an AssetResult.'''
pass | 1 | 1 | 2 | 0 | 2 | 0 | 1 | 0.33 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,618 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/execute_step.py | dagster._core.execution.plan.execute_step._InputProvenanceData | from typing_extensions import TypedDict
from typing import Any, Optional, Union, cast
from dagster._core.definitions.data_version import CODE_VERSION_TAG, DATA_VERSION_IS_USER_PROVIDED_TAG, DATA_VERSION_TAG, DEFAULT_DATA_VERSION, NULL_EVENT_POINTER, DataVersion, compute_logical_data_version, get_input_data_version_tag,... |
class _InputProvenanceData(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,619 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/external_step.py | dagster._core.execution.plan.external_step.LocalExternalStepLauncher | from typing import TYPE_CHECKING, Callable, Optional, cast
import subprocess
import os
import sys
import pickle
from dagster._core.execution.context.system import StepExecutionContext
from collections.abc import Iterator, Sequence
from dagster._serdes import deserialize_value
import shutil
from dagster._core.errors imp... |
class LocalExternalStepLauncher(StepLauncher):
'''Launches each step in its own local process, outside the plan process.'''
def __init__(self, scratch_dir: str):
pass
def launch_step(self, step_context: StepExecutionContext) -> Iterator[DagsterEvent]:
pass | 3 | 1 | 20 | 2 | 16 | 2 | 3 | 0.15 | 1 | 8 | 5 | 1 | 2 | 1 | 2 | 23 | 44 | 6 | 33 | 19 | 27 | 5 | 25 | 15 | 22 | 4 | 5 | 2 | 5 |
21,620 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/handle.py | dagster._core.execution.plan.handle.ResolvedFromDynamicStepHandle | from dagster._serdes import whitelist_for_serdes
from typing import NamedTuple, Optional, Union, cast
import dagster._check as check
from dagster._core.definitions.dependency import NodeHandle
@whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
class ResolvedFromDynamicStepHandle(NamedTuple('_Re... | @whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
class ResolvedFromDynamicStepHandle(NamedTuple('_ResolvedFromDynamicStepHandle', [('node_handle', NodeHandle), ('mapping_key', str), ('key', str)])):
'''A reference to an ExecutionStep that came from resolving an UnresolvedMappedExecutionSte... | 6 | 1 | 5 | 0 | 5 | 0 | 1 | 0.24 | 1 | 3 | 1 | 0 | 3 | 0 | 3 | 3 | 29 | 3 | 21 | 10 | 11 | 5 | 7 | 4 | 3 | 1 | 1 | 0 | 3 |
21,621 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/handle.py | dagster._core.execution.plan.handle.StepHandle | from dagster._core.definitions.dependency import NodeHandle
import dagster._check as check
from typing import NamedTuple, Optional, Union, cast
import re
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
class StepHandle(NamedTuple('_StepHandle'... | @whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
class StepHandle(NamedTuple('_StepHandle', [('node_handle', NodeHandle), ('key', str)])):
'''A reference to an ExecutionStep that was determined statically.'''
def __new__(cls, node_handle: NodeHandle, key: Optional[str]=None):
... | 6 | 1 | 8 | 1 | 7 | 0 | 2 | 0.09 | 1 | 4 | 2 | 0 | 2 | 0 | 3 | 3 | 29 | 5 | 22 | 9 | 15 | 2 | 13 | 6 | 9 | 3 | 1 | 1 | 5 |
21,622 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/handle.py | dagster._core.execution.plan.handle.UnresolvedStepHandle | from dagster._core.definitions.dependency import NodeHandle
from dagster._serdes import whitelist_for_serdes
import dagster._check as check
from typing import NamedTuple, Optional, Union, cast
@whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
class UnresolvedStepHandle(NamedTuple('_UnresolvedS... | @whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
class UnresolvedStepHandle(NamedTuple('_UnresolvedStepHandle', [('node_handle', NodeHandle)])):
'''A reference to an UnresolvedMappedExecutionStep in an execution.'''
def __new__(cls, node_handle: NodeHandle):
pass
def to_k... | 5 | 1 | 3 | 0 | 3 | 0 | 1 | 0.1 | 1 | 3 | 1 | 0 | 3 | 0 | 3 | 3 | 14 | 3 | 10 | 4 | 6 | 1 | 7 | 4 | 3 | 1 | 1 | 0 | 3 |
21,623 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.FromConfig | from dagster._core.system_config.objects import ResolvedRunConfig
from typing import TYPE_CHECKING, AbstractSet, Optional, Union, cast
import dagster._check as check
from collections.abc import Iterator, Sequence
from dagster._serdes import whitelist_for_serdes
from dagster._core.errors import DagsterExecutionLoadInput... | @whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
@record
class FromConfig(StepInputSource):
'''This step input source is configuration to be passed to a type loader.
A None node_handle implies the inputs were provided at the root graph level.
'''
def get_associated_input_def(s... | 7 | 3 | 10 | 0 | 8 | 2 | 2 | 0.25 | 1 | 4 | 1 | 0 | 4 | 0 | 4 | 28 | 51 | 6 | 36 | 17 | 25 | 9 | 22 | 11 | 17 | 4 | 5 | 1 | 9 |
21,624 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.FromDefaultValue | from dagster._record import IHaveNew, record, record_custom
from collections.abc import Iterator, Sequence
from dagster._core.definitions import InputDefinition, JobDefinition, NodeHandle
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
@record... | @whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
@record
class FromDefaultValue(StepInputSource):
'''This step input source is the default value declared on an InputDefinition.'''
def _load_value(self, pipeline_def: JobDefinition):
pass
def load_input_object(self, step_co... | 5 | 1 | 5 | 0 | 5 | 0 | 1 | 0.08 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 26 | 17 | 3 | 13 | 7 | 6 | 1 | 7 | 3 | 4 | 1 | 5 | 0 | 2 |
21,625 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.FromDirectInputValue | from dagster._record import IHaveNew, record, record_custom
from collections.abc import Iterator, Sequence
from dagster._core.definitions import InputDefinition, JobDefinition, NodeHandle
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
@record... | @whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
@record
class FromDirectInputValue(StepInputSource):
'''This input source is for direct python values to be passed as inputs to ops.'''
def load_input_object(self, step_context: 'StepExecutionContext', input_def: InputDefinition) -> Ite... | 5 | 1 | 5 | 0 | 5 | 0 | 1 | 0.08 | 1 | 3 | 0 | 0 | 2 | 0 | 2 | 26 | 17 | 3 | 13 | 10 | 4 | 1 | 7 | 4 | 4 | 1 | 5 | 0 | 2 |
21,626 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.FromDynamicCollect | from dagster._serdes import whitelist_for_serdes
from dagster._core.execution.plan.outputs import StepOutputHandle, UnresolvedStepOutputHandle
from typing import TYPE_CHECKING, AbstractSet, Optional, Union, cast
from dagster._record import IHaveNew, record, record_custom
from collections.abc import Iterator, Sequence
f... | @whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
@record_custom
class FromDynamicCollect(IHaveNew):
def __new__(cls, source: Union[FromPendingDynamicStepOutput, FromUnresolvedStepOutput], node_handle: Optional[NodeHandle]=None, input_name: Optional[str]=None):
pass
@property
... | 11 | 0 | 6 | 0 | 6 | 1 | 1 | 0.13 | 1 | 9 | 5 | 0 | 6 | 0 | 6 | 8 | 51 | 6 | 40 | 16 | 24 | 5 | 18 | 7 | 11 | 2 | 1 | 1 | 7 |
21,627 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.FromInputManager | from collections.abc import Iterator, Sequence
from dagster._serdes import whitelist_for_serdes
from dagster._record import IHaveNew, record, record_custom
from dagster._core.execution.plan.utils import build_resources_for_manager, op_execution_error_boundary
from dagster._core.definitions import InputDefinition, JobDe... | @whitelist_for_serdes(storage_name='FromRootInputManager', storage_field_names={'node_handle': 'solid_handle'})
@record
class FromInputManager(StepInputSource):
'''Load input value via a InputManager.'''
def load_input_object(self, step_context: 'StepExecutionContext', input_def: InputDefinition) -> Iterator[o... | 5 | 1 | 27 | 6 | 21 | 0 | 2 | 0.02 | 1 | 4 | 1 | 0 | 2 | 0 | 2 | 26 | 60 | 14 | 45 | 18 | 35 | 1 | 19 | 12 | 15 | 2 | 5 | 0 | 3 |
21,628 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.FromLoadableAsset | from dagster._core.execution.plan.utils import build_resources_for_manager, op_execution_error_boundary
from dagster._record import IHaveNew, record, record_custom
import dagster._check as check
from collections.abc import Iterator, Sequence
from dagster._core.definitions.utils import DEFAULT_IO_MANAGER_KEY
from dagste... | @whitelist_for_serdes(storage_name='FromSourceAsset', storage_field_names={'node_handle': 'solid_handle'})
@record
class FromLoadableAsset(StepInputSource):
'''Load input value from an asset.'''
def load_input_object(self, step_context: 'StepExecutionContext', input_def: InputDefinition) -> Iterator[object]:
... | 5 | 1 | 43 | 5 | 38 | 0 | 4 | 0.03 | 1 | 5 | 2 | 0 | 2 | 0 | 2 | 26 | 93 | 13 | 78 | 26 | 67 | 2 | 30 | 20 | 25 | 5 | 5 | 1 | 8 |
21,629 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.FromMultipleSources | import dagster._check as check
from dagster._serdes import whitelist_for_serdes
from dagster._record import IHaveNew, record, record_custom
from dagster._core.definitions import InputDefinition, JobDefinition, NodeHandle
from collections.abc import Iterator, Sequence
from typing import TYPE_CHECKING, AbstractSet, Optio... | @whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
@record_custom
class FromMultipleSources(MultiStepInputSource, IHaveNew):
'''This step input is fans-in multiple sources in to a single input. The input will receive a list.'''
def __new__(cls, sources: Sequence[StepInputSource], node_h... | 5 | 1 | 26 | 3 | 22 | 2 | 4 | 0.11 | 2 | 8 | 2 | 0 | 2 | 0 | 2 | 31 | 60 | 8 | 47 | 18 | 34 | 5 | 21 | 9 | 17 | 5 | 6 | 3 | 7 |
21,630 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.FromMultipleSourcesLoadSingleSource | import dagster._check as check
from dagster._serdes import whitelist_for_serdes
from dagster._record import IHaveNew, record, record_custom
from dagster._core.definitions import InputDefinition, JobDefinition, NodeHandle
from collections.abc import Iterator, Sequence
@whitelist_for_serdes
@record_custom
class FromMult... | @whitelist_for_serdes
@record_custom
class FromMultipleSourcesLoadSingleSource(MultiStepInputSource, IHaveNew):
'''This step input fans-in multiple sources in to a single input. The input will receive just
the value from loading source_to_load_from.
'''
def __new__(cls, sources: Sequence[StepInputSourc... | 5 | 1 | 9 | 0 | 9 | 0 | 2 | 0.14 | 2 | 3 | 0 | 0 | 2 | 0 | 2 | 31 | 27 | 3 | 21 | 8 | 14 | 3 | 10 | 4 | 7 | 2 | 6 | 1 | 3 |
21,631 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.FromPendingDynamicStepOutput | from dagster._record import IHaveNew, record, record_custom
import dagster._check as check
from dagster._core.definitions import InputDefinition, JobDefinition, NodeHandle
from dagster._serdes import whitelist_for_serdes
from dagster._core.execution.plan.outputs import StepOutputHandle, UnresolvedStepOutputHandle
from ... | @whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
@record_custom
class FromPendingDynamicStepOutput(IHaveNew):
'''This step input source models being directly downstream of a step with dynamic output.
Once that step completes successfully, this will resolve once per DynamicOutput.
'... | 11 | 1 | 7 | 0 | 6 | 1 | 1 | 0.23 | 1 | 5 | 2 | 0 | 6 | 0 | 6 | 8 | 57 | 8 | 40 | 16 | 24 | 9 | 19 | 7 | 12 | 1 | 1 | 0 | 6 |
21,632 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.FromStepOutput | from typing import TYPE_CHECKING, AbstractSet, Optional, Union, cast
from dagster._record import IHaveNew, record, record_custom
from dagster._serdes import whitelist_for_serdes
from collections.abc import Iterator, Sequence
from dagster._core.execution.plan.utils import build_resources_for_manager, op_execution_error_... | @whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
@record_custom
class FromStepOutput(StepInputSource, IHaveNew):
'''This step input source is the output of a previous step.
Source handle may refer to graph in case of input mapping.
'''
def __new__(cls, step_output_handle: Step... | 11 | 1 | 17 | 1 | 16 | 0 | 2 | 0.06 | 2 | 10 | 4 | 0 | 6 | 0 | 6 | 32 | 123 | 15 | 102 | 38 | 74 | 6 | 35 | 19 | 26 | 3 | 5 | 1 | 9 |
21,633 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.FromUnresolvedStepOutput | from dagster._record import IHaveNew, record, record_custom
import dagster._check as check
from dagster._serdes import whitelist_for_serdes
from dagster._core.definitions import InputDefinition, JobDefinition, NodeHandle
from dagster._core.execution.plan.outputs import StepOutputHandle, UnresolvedStepOutputHandle
from ... | @whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
@record_custom
class FromUnresolvedStepOutput(IHaveNew):
'''This step input source models being downstream of another unresolved step,
for example indirectly downstream from a step with dynamic output.
'''
def __new__(cls, unres... | 11 | 1 | 5 | 0 | 5 | 0 | 1 | 0.18 | 1 | 6 | 3 | 0 | 6 | 0 | 6 | 8 | 47 | 7 | 34 | 16 | 18 | 6 | 17 | 7 | 10 | 1 | 1 | 0 | 6 |
21,634 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.MultiStepInputSource | from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, AbstractSet, Optional, Union, cast
from dagster._core.execution.plan.outputs import StepOutputHandle, UnresolvedStepOutputHandle
from dagster._core.definitions import InputDefinition, JobDefinition, NodeHandle
from collections.abc import Iterator, Se... |
class MultiStepInputSource(StepInputSource, ABC):
@property
def step_key_dependencies(self) -> AbstractSet[str]:
pass
@property
def step_output_handle_dependencies(self) -> Sequence[StepOutputHandle]:
pass
def required_resource_keys(self, job_def: JobDefinition, op_handle: NodeHan... | 6 | 0 | 7 | 1 | 6 | 0 | 2 | 0 | 2 | 5 | 1 | 2 | 3 | 0 | 3 | 27 | 28 | 5 | 23 | 14 | 15 | 0 | 17 | 10 | 13 | 2 | 5 | 1 | 6 |
21,635 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.StepInput | from dagster._core.execution.plan.outputs import StepOutputHandle, UnresolvedStepOutputHandle
from dagster._record import IHaveNew, record, record_custom
from collections.abc import Iterator, Sequence
from typing import TYPE_CHECKING, AbstractSet, Optional, Union, cast
@record
class StepInput:
"""Holds information... | @record
class StepInput:
'''Holds information for how to prepare an input for an ExecutionStep.'''
@property
def dependency_keys(self) -> AbstractSet[str]:
pass
def get_step_output_handle_dependencies(self) -> Sequence[StepOutputHandle]:
pass | 5 | 1 | 2 | 0 | 2 | 0 | 1 | 0.11 | 0 | 3 | 1 | 0 | 2 | 0 | 2 | 2 | 13 | 3 | 9 | 4 | 5 | 1 | 8 | 3 | 5 | 1 | 0 | 0 | 2 |
21,636 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.StepInputData | from dagster._record import IHaveNew, record, record_custom
from dagster._core.execution.plan.objects import TypeCheckData
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes
@record
class StepInputData:
"""Serializable payload of information for the result of processing a step input."""
inp... | @whitelist_for_serdes
@record
class StepInputData:
'''Serializable payload of information for the result of processing a step input.'''
pass | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 3 | 1 | 2 | 1 | 3 | 1 | 2 | 0 | 0 | 0 | 0 |
21,637 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.StepInputSource | from collections.abc import Iterator, Sequence
from dagster._core.definitions import InputDefinition, JobDefinition, NodeHandle
from dagster._core.execution.plan.outputs import StepOutputHandle, UnresolvedStepOutputHandle
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, AbstractSet, Optional, Union... |
class StepInputSource(ABC):
'''How to load the data for a step input.'''
@property
def step_key_dependencies(self) -> set[str]:
pass
@property
def step_output_handle_dependencies(self) -> Sequence[StepOutputHandle]:
pass
@abstractmethod
def load_input_object(self, step_conte... | 8 | 1 | 3 | 0 | 3 | 0 | 1 | 0.07 | 1 | 5 | 1 | 7 | 4 | 0 | 4 | 24 | 20 | 4 | 15 | 12 | 4 | 1 | 9 | 5 | 4 | 1 | 4 | 0 | 4 |
21,638 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.UnresolvedCollectStepInput | from dagster._core.execution.plan.outputs import StepOutputHandle, UnresolvedStepOutputHandle
from dagster._record import IHaveNew, record, record_custom
from collections.abc import Iterator, Sequence
from typing import TYPE_CHECKING, AbstractSet, Optional, Union, cast
@record
class UnresolvedCollectStepInput:
"""... | @record
class UnresolvedCollectStepInput:
'''Holds information for how to resolve a StepInput once the upstream mapping is done.'''
@property
def resolved_by_step_key(self) -> str:
pass
@property
def resolved_by_output_name(self) -> str:
pass
def resolved_by_step_key(self) -> str... | 8 | 2 | 3 | 0 | 3 | 0 | 1 | 0.11 | 0 | 4 | 2 | 0 | 4 | 0 | 4 | 4 | 25 | 5 | 18 | 7 | 11 | 2 | 12 | 5 | 7 | 1 | 0 | 0 | 4 |
21,639 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/inputs.py | dagster._core.execution.plan.inputs.UnresolvedMappedStepInput | from collections.abc import Iterator, Sequence
from typing import TYPE_CHECKING, AbstractSet, Optional, Union, cast
from dagster._core.execution.plan.outputs import StepOutputHandle, UnresolvedStepOutputHandle
from dagster._record import IHaveNew, record, record_custom
@record
class UnresolvedMappedStepInput:
"""H... | @record
class UnresolvedMappedStepInput:
'''Holds information for how to resolve a StepInput once the upstream mapping is done.'''
@property
def resolved_by_step_key(self) -> str:
pass
@property
def resolved_by_output_name(self) -> str:
pass
def resolved_by_step_key(self) -> str:... | 8 | 2 | 3 | 0 | 3 | 0 | 1 | 0.11 | 0 | 4 | 2 | 0 | 4 | 0 | 4 | 4 | 25 | 5 | 18 | 7 | 11 | 2 | 12 | 5 | 7 | 1 | 0 | 0 | 4 |
21,640 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/instance_concurrency_context.py | dagster._core.execution.plan.instance_concurrency_context.InstanceConcurrencyContext | from dagster._core.storage.dagster_run import DagsterRun
from dagster._core.instance import DagsterInstance
from dagster._core.instance.config import PoolGranularity
from typing_extensions import Self
from collections import defaultdict
from dagster._core.storage.tags import PRIORITY_TAG
from typing import TYPE_CHECKIN... |
class InstanceConcurrencyContext:
'''This class is used to manage instance-scoped concurrency for a given run. It wraps the
instance-based storage methods that obtains / releases concurrency slots, and provides a common
interface for the active execution to throttle queries to the DB to check for available... | 11 | 1 | 13 | 2 | 11 | 1 | 3 | 0.14 | 0 | 12 | 1 | 1 | 10 | 10 | 10 | 10 | 157 | 29 | 112 | 41 | 90 | 16 | 87 | 30 | 76 | 11 | 0 | 2 | 29 |
21,641 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/objects.py | dagster._core.execution.plan.objects.ErrorSource | from enum import Enum
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes
class ErrorSource(Enum):
FRAMEWORK_ERROR = 'FRAMEWORK_ERROR'
USER_CODE_ERROR = 'USER_CODE_ERROR'
UNEXPECTED_ERROR = 'UNEXPECTED_ERROR'
INTERRUPT = 'INTERRUPT' | @whitelist_for_serdes
class ErrorSource(Enum):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 9 | 0 | 5 | 5 | 4 | 4 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
21,642 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/objects.py | dagster._core.execution.plan.objects.StepFailureData | from typing import TYPE_CHECKING, NamedTuple, Optional
from dagster._serdes import whitelist_for_serdes
from dagster._utils.error import SerializableErrorInfo, serializable_error_info_from_exc_info, truncate_event_error_info
import dagster._check as check
@whitelist_for_serdes
class StepFailureData(NamedTuple('_StepFa... | @whitelist_for_serdes
class StepFailureData(NamedTuple('_StepFailureData', [('error', Optional[SerializableErrorInfo]), ('user_failure_data', Optional[UserFailureData]), ('error_source', ErrorSource)])):
def __new__(cls, error, user_failure_data, error_source=None):
pass
@property
def error_display... | 5 | 1 | 16 | 1 | 14 | 2 | 3 | 0.08 | 1 | 6 | 4 | 0 | 2 | 0 | 2 | 2 | 44 | 3 | 38 | 15 | 24 | 3 | 14 | 5 | 10 | 4 | 1 | 2 | 5 |
21,643 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/objects.py | dagster._core.execution.plan.objects.StepRetryData | from dagster._serdes import whitelist_for_serdes
from dagster._utils.error import SerializableErrorInfo, serializable_error_info_from_exc_info, truncate_event_error_info
import dagster._check as check
from typing import TYPE_CHECKING, NamedTuple, Optional
@whitelist_for_serdes
class StepRetryData(NamedTuple('_StepRetr... | @whitelist_for_serdes
class StepRetryData(NamedTuple('_StepRetryData', [('error', SerializableErrorInfo), ('seconds_to_wait', Optional[check.Numeric])])):
def __new__(cls, error, seconds_to_wait=None):
pass | 3 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 1 | 12 | 0 | 12 | 7 | 5 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,644 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/objects.py | dagster._core.execution.plan.objects.StepSuccessData | from dagster._serdes import whitelist_for_serdes
from typing import TYPE_CHECKING, NamedTuple, Optional
import dagster._check as check
@whitelist_for_serdes
class StepSuccessData(NamedTuple('_StepSuccessData', [('duration_ms', float)])):
def __new__(cls, duration_ms):
return super().__new__(cls, duration_... | @whitelist_for_serdes
class StepSuccessData(NamedTuple('_StepSuccessData', [('duration_ms', float)])):
def __new__(cls, duration_ms):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,645 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/objects.py | dagster._core.execution.plan.objects.TypeCheckData | from typing import TYPE_CHECKING, NamedTuple, Optional
from dagster._core.definitions.metadata import MetadataFieldSerializer, MetadataValue, normalize_metadata
import dagster._check as check
from collections.abc import Mapping
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes(storage_field_names=... | @whitelist_for_serdes(storage_field_names={'metadata': 'metadata_entries'}, field_serializers={'metadata': MetadataFieldSerializer})
class TypeCheckData(NamedTuple('_TypeCheckData', [('success', bool), ('label', str), ('description', Optional[str]), ('metadata', Mapping[str, MetadataValue])])):
def __new__(cls, su... | 3 | 0 | 10 | 0 | 10 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 21 | 0 | 21 | 12 | 9 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,646 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/objects.py | dagster._core.execution.plan.objects.UserFailureData | from typing import TYPE_CHECKING, NamedTuple, Optional
from dagster._serdes import whitelist_for_serdes
from collections.abc import Mapping
import dagster._check as check
from dagster._core.definitions.metadata import MetadataFieldSerializer, MetadataValue, normalize_metadata
@whitelist_for_serdes(storage_field_names=... | @whitelist_for_serdes(storage_field_names={'metadata': 'metadata_entries'}, field_serializers={'metadata': MetadataFieldSerializer})
class UserFailureData(NamedTuple('_UserFailureData', [('label', str), ('description', Optional[str]), ('metadata', Mapping[str, MetadataValue])])):
def __new__(cls, label, descriptio... | 3 | 0 | 9 | 0 | 9 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 19 | 0 | 19 | 11 | 8 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,647 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/outputs.py | dagster._core.execution.plan.outputs.StepOutput | from dagster._serdes import whitelist_for_serdes
from typing import NamedTuple, Optional
from dagster._core.definitions.events import AssetKey
from dagster._core.definitions import AssetMaterialization, NodeHandle
import dagster._check as check
@whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})... | @whitelist_for_serdes(storage_field_names={'node_handle': 'solid_handle'})
class StepOutput(NamedTuple('_StepOutput', [('node_handle', NodeHandle), ('name', str), ('dagster_type_key', str), ('properties', StepOutputProperties)])):
'''Holds the information for an ExecutionStep to process its outputs.'''
def __n... | 11 | 1 | 4 | 0 | 4 | 0 | 1 | 0.02 | 1 | 4 | 1 | 0 | 6 | 0 | 6 | 6 | 49 | 6 | 42 | 28 | 14 | 1 | 15 | 7 | 8 | 2 | 1 | 1 | 7 |
21,648 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/outputs.py | dagster._core.execution.plan.outputs.StepOutputData | from dagster._core.definitions import AssetMaterialization, NodeHandle
from dagster._core.definitions.metadata import MetadataFieldSerializer, MetadataValue, normalize_metadata
from typing import NamedTuple, Optional
from collections.abc import Mapping
from dagster._serdes import whitelist_for_serdes
import dagster._ch... | @whitelist_for_serdes(storage_field_names={'metadata': 'metadata_entries'}, field_serializers={'metadata': MetadataFieldSerializer})
class StepOutputData(NamedTuple('_StepOutputData', [('step_output_handle', 'StepOutputHandle'), ('type_check_data', Optional[TypeCheckData]), ('version', Optional[str]), ('metadata', Mapp... | 7 | 1 | 8 | 0 | 8 | 0 | 1 | 0.06 | 1 | 4 | 1 | 0 | 3 | 0 | 3 | 3 | 41 | 3 | 36 | 23 | 13 | 2 | 7 | 4 | 3 | 1 | 1 | 0 | 3 |
21,649 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/outputs.py | dagster._core.execution.plan.outputs.StepOutputHandle | from dagster._serdes import whitelist_for_serdes
import dagster._check as check
from typing import NamedTuple, Optional
@whitelist_for_serdes
class StepOutputHandle(NamedTuple('_StepOutputHandle', [('step_key', str), ('output_name', str), ('mapping_key', Optional[str])])):
"""A reference to a specific output that ... | @whitelist_for_serdes
class StepOutputHandle(NamedTuple('_StepOutputHandle', [('step_key', str), ('output_name', str), ('mapping_key', Optional[str])])):
'''A reference to a specific output that has or will occur within the scope of an execution.'''
def __new__(cls, step_key: str, output_name: str='result', ma... | 3 | 1 | 7 | 0 | 7 | 0 | 1 | 0.08 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 15 | 1 | 13 | 7 | 6 | 1 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,650 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/outputs.py | dagster._core.execution.plan.outputs.StepOutputProperties | from dagster._core.definitions.assets.definition.asset_spec import AssetExecutionType
from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey
from typing import NamedTuple, Optional
from dagster._core.definitions.events import AssetKey
from dagster._serdes import whitelist_for_serdes
import da... | @whitelist_for_serdes(storage_field_names={'should_materialize_DEPRECATED': 'should_materialize'})
class StepOutputProperties(NamedTuple('_StepOutputProperties', [('is_required', bool), ('is_dynamic', bool), ('is_asset', bool), ('should_materialize_DEPRECATED', bool), ('asset_key', Optional[AssetKey]), ('is_asset_parti... | 3 | 0 | 20 | 0 | 20 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 34 | 0 | 34 | 24 | 10 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,651 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/outputs.py | dagster._core.execution.plan.outputs.UnresolvedStepOutputHandle | from dagster._serdes import whitelist_for_serdes
from typing import NamedTuple, Optional
from dagster._core.execution.plan.handle import UnresolvedStepHandle
import dagster._check as check
@whitelist_for_serdes
class UnresolvedStepOutputHandle(NamedTuple('_UnresolvedStepOutputHandle', [('unresolved_step_handle', Unres... | @whitelist_for_serdes
class UnresolvedStepOutputHandle(NamedTuple('_UnresolvedStepOutputHandle', [('unresolved_step_handle', UnresolvedStepHandle), ('output_name', str), ('resolved_by_step_key', str), ('resolved_by_output_name', str)])):
'''Placeholding that will resolve to StepOutputHandle for each mapped output o... | 5 | 3 | 9 | 0 | 8 | 1 | 1 | 0.17 | 1 | 4 | 2 | 0 | 3 | 0 | 3 | 3 | 44 | 3 | 35 | 20 | 15 | 6 | 7 | 4 | 3 | 1 | 1 | 0 | 3 |
21,652 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/plan.py | dagster._core.execution.plan.plan.ExecutionPlan | from dagster._core.errors import DagsterExecutionStepNotFoundError, DagsterInvariantViolationError, DagsterUnmetExecutorRequirementsError
from dagster._core.definitions.repository_definition import RepositoryLoadData
from dagster._core.execution.plan.state import KnownExecutionState
from dagster._core.execution.plan.ha... |
class ExecutionPlan(NamedTuple('_ExecutionPlan', [('step_dict', dict[StepHandleUnion, IExecutionStep]), ('executable_map', dict[str, Union[StepHandle, ResolvedFromDynamicStepHandle]]), ('resolvable_map', dict[frozenset[str], Sequence[Union[StepHandle, UnresolvedStepHandle]]]), ('step_handles_to_execute', Sequence[Step... | 31 | 2 | 17 | 1 | 14 | 1 | 2 | 0.09 | 1 | 24 | 11 | 0 | 21 | 3 | 24 | 24 | 453 | 54 | 369 | 130 | 270 | 34 | 121 | 53 | 94 | 10 | 1 | 4 | 48 |
21,653 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/plan.py | dagster._core.execution.plan.plan._PlanBuilder | from dagster._core.execution.plan.compute import create_step_outputs
from dagster._core.definitions import GraphDefinition, InputDefinition, Node, NodeHandle, NodeOutput, OpDefinition
from dagster._core.definitions.repository_definition import RepositoryLoadData
from collections.abc import Mapping, Sequence
from dagste... |
class _PlanBuilder:
'''This is the state that is built up during the execution plan build process.'''
def __init__(self, job_def: JobDefinition, resolved_run_config: ResolvedRunConfig, step_keys_to_execute: Optional[Sequence[str]], known_state: KnownExecutionState, instance_ref: Optional[InstanceRef], tags: M... | 7 | 2 | 50 | 5 | 42 | 3 | 4 | 0.08 | 0 | 14 | 7 | 0 | 6 | 10 | 6 | 6 | 307 | 34 | 253 | 66 | 226 | 20 | 88 | 46 | 81 | 14 | 0 | 3 | 26 |
21,654 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/resume_retry.py | dagster._core.execution.plan.resume_retry.ReexecutionStrategy | import enum
class ReexecutionStrategy(enum.Enum):
ALL_STEPS = 'ALL_STEPS'
FROM_FAILURE = 'FROM_FAILURE'
FROM_ASSET_FAILURE = 'FROM_ASSET_FAILURE' |
class ReexecutionStrategy(enum.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,655 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/state.py | dagster._core.execution.plan.state.KnownExecutionState | from typing import TYPE_CHECKING, Any, NamedTuple, Optional, cast
from collections.abc import Mapping, Sequence
from dagster._serdes import whitelist_for_serdes
from dagster._core.execution.retries import RetryState
from dagster._core.execution.plan.outputs import StepOutputHandle
from dagster._core.storage.dagster_run... | @whitelist_for_serdes(field_serializers={'step_output_versions': StepOutputVersionSerializer})
class KnownExecutionState(NamedTuple('_KnownExecutionState', [('previous_retry_attempts', Mapping[str, int]), ('dynamic_mappings', Mapping[str, Mapping[str, Optional[Sequence[str]]]]), ('step_output_versions', Mapping[StepOut... | 9 | 1 | 12 | 0 | 12 | 0 | 1 | 0.13 | 1 | 10 | 2 | 0 | 3 | 0 | 5 | 5 | 88 | 7 | 72 | 35 | 40 | 9 | 17 | 9 | 11 | 2 | 1 | 1 | 6 |
21,656 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/state.py | dagster._core.execution.plan.state.PastExecutionState | from dagster._core.execution.plan.outputs import StepOutputHandle
from dagster._serdes import whitelist_for_serdes
from typing import TYPE_CHECKING, Any, NamedTuple, Optional, cast
import dagster._check as check
@whitelist_for_serdes
class PastExecutionState(NamedTuple('_PastExecutionState', [('run_id', str), ('produc... | @whitelist_for_serdes
class PastExecutionState(NamedTuple('_PastExecutionState', [('run_id', str), ('produced_outputs', set[StepOutputHandle]), ('parent_state', Optional[object])])):
'''Information relevant to execution about the parent run, notably which outputs
were produced by which run ids, allowing for the... | 4 | 1 | 7 | 0 | 7 | 0 | 1 | 0.17 | 1 | 4 | 1 | 0 | 2 | 0 | 2 | 2 | 30 | 2 | 24 | 17 | 7 | 4 | 5 | 3 | 2 | 1 | 1 | 0 | 2 |
21,657 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/state.py | dagster._core.execution.plan.state.StepOutputVersionSerializer | from dagster._core.execution.plan.outputs import StepOutputHandle
from dagster_shared.serdes.serdes import FieldSerializer, UnknownSerdesValue, UnpackContext, WhitelistMap, pack_value
from typing import TYPE_CHECKING, Any, NamedTuple, Optional, cast
from collections.abc import Mapping, Sequence
class StepOutputVersion... |
class StepOutputVersionSerializer(FieldSerializer):
def pack(self, value: Mapping[StepOutputHandle, str], whitelist_map: WhitelistMap, descent_path: str) -> Sequence[dict[str, Any]]:
pass
def unpack(self, value: Sequence[UnknownSerdesValue], whitelist_map: WhitelistMap, context: UnpackContext) -> Map... | 3 | 0 | 14 | 0 | 14 | 1 | 2 | 0.04 | 1 | 9 | 4 | 0 | 2 | 0 | 2 | 25 | 29 | 1 | 28 | 15 | 18 | 1 | 12 | 8 | 9 | 2 | 6 | 1 | 3 |
21,658 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/step.py | dagster._core.execution.plan.step.ExecutionStep | from collections.abc import Mapping, Sequence
from typing import TYPE_CHECKING, NamedTuple, Optional, Union, cast
from dagster._core.execution.plan.inputs import StepInput, UnresolvedCollectStepInput, UnresolvedMappedStepInput
import dagster._check as check
from dagster._core.execution.plan.outputs import StepOutput
fr... |
class ExecutionStep(NamedTuple('_ExecutionStep', [('handle', Union[StepHandle, ResolvedFromDynamicStepHandle]), ('job_name', str), ('step_input_dict', Mapping[str, StepInput]), ('step_output_dict', Mapping[str, StepOutput]), ('tags', Mapping[str, str]), ('logging_tags', Mapping[str, str]), ('key', str), ('pool', Optio... | 18 | 1 | 6 | 0 | 6 | 0 | 1 | 0.02 | 2 | 12 | 5 | 0 | 12 | 0 | 12 | 24 | 102 | 13 | 87 | 45 | 44 | 2 | 34 | 15 | 21 | 2 | 1 | 1 | 14 |
21,659 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/step.py | dagster._core.execution.plan.step.IExecutionStep | from abc import abstractmethod
from dagster._core.execution.plan.handle import ResolvedFromDynamicStepHandle, StepHandle, UnresolvedStepHandle
from dagster._core.execution.plan.inputs import StepInput, UnresolvedCollectStepInput, UnresolvedMappedStepInput
from dagster._core.execution.plan.outputs import StepOutput
from... |
class IExecutionStep:
@property
@abstractmethod
def handle(self) -> Union[StepHandle, UnresolvedStepHandle, ResolvedFromDynamicStepHandle]:
pass
@property
@abstractmethod
def key(self) -> str:
pass
@property
@abstractmethod
def node_handle(self) -> 'NodeHandle':
... | 35 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 11 | 8 | 3 | 12 | 0 | 12 | 12 | 62 | 11 | 51 | 29 | 12 | 0 | 25 | 13 | 12 | 1 | 0 | 0 | 12 |
21,660 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/step.py | dagster._core.execution.plan.step.StepKind | from dagster_shared.serdes import EnumSerializer, whitelist_for_serdes
from enum import Enum
@whitelist_for_serdes(serializer=StepKindSerializer)
class StepKind(Enum):
COMPUTE = 'COMPUTE'
UNRESOLVED_MAPPED = 'UNRESOLVED_MAPPED'
UNRESOLVED_COLLECT = 'UNRESOLVED_COLLECT' | @whitelist_for_serdes(serializer=StepKindSerializer)
class StepKind(Enum):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
21,661 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/step.py | dagster._core.execution.plan.step.StepKindSerializer | from dagster_shared.serdes import EnumSerializer, whitelist_for_serdes
class StepKindSerializer(EnumSerializer['StepKind']):
def unpack(self, storage_str: str) -> 'StepKind':
if storage_str == 'UNRESOLVED':
return StepKind.UNRESOLVED_MAPPED
else:
return StepKind[storage_str... |
class StepKindSerializer(EnumSerializer['StepKind']):
def unpack(self, storage_str: str) -> 'StepKind':
pass | 2 | 0 | 6 | 0 | 5 | 1 | 2 | 0.17 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 27 | 7 | 0 | 6 | 2 | 4 | 1 | 5 | 2 | 3 | 2 | 6 | 1 | 2 |
21,662 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/step.py | dagster._core.execution.plan.step.UnresolvedCollectExecutionStep | from dagster._core.execution.plan.outputs import StepOutput
from typing import TYPE_CHECKING, NamedTuple, Optional, Union, cast
from collections.abc import Mapping, Sequence
from dagster._core.execution.plan.inputs import StepInput, UnresolvedCollectStepInput, UnresolvedMappedStepInput
from dagster._core.execution.plan... |
class UnresolvedCollectExecutionStep(NamedTuple('_UnresolvedCollectExecutionStep', [('handle', StepHandle), ('job_name', str), ('step_input_dict', Mapping[str, Union[StepInput, UnresolvedCollectStepInput]]), ('step_output_dict', Mapping[str, StepOutput]), ('tags', Mapping[str, str]), ('pool', Optional[str])]), IExecut... | 18 | 1 | 8 | 0 | 8 | 0 | 2 | 0.01 | 2 | 13 | 6 | 0 | 11 | 3 | 11 | 23 | 124 | 15 | 108 | 51 | 67 | 1 | 41 | 18 | 29 | 4 | 1 | 2 | 18 |
21,663 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/step.py | dagster._core.execution.plan.step.UnresolvedMappedExecutionStep | from dagster._core.execution.plan.handle import ResolvedFromDynamicStepHandle, StepHandle, UnresolvedStepHandle
from collections.abc import Mapping, Sequence
from dagster._core.execution.plan.inputs import StepInput, UnresolvedCollectStepInput, UnresolvedMappedStepInput
import dagster._check as check
from typing import... |
class UnresolvedMappedExecutionStep(NamedTuple('_UnresolvedMappedExecutionStep', [('handle', UnresolvedStepHandle), ('job_name', str), ('step_input_dict', Mapping[str, Union[StepInput, UnresolvedMappedStepInput]]), ('step_output_dict', Mapping[str, StepOutput]), ('tags', Mapping[str, str]), ('pool', Optional[str])]), ... | 22 | 1 | 9 | 1 | 8 | 0 | 2 | 0.03 | 2 | 14 | 7 | 0 | 13 | 2 | 13 | 25 | 150 | 22 | 124 | 59 | 79 | 4 | 54 | 25 | 40 | 4 | 1 | 2 | 22 |
21,664 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/plan/utils.py | dagster._core.execution.plan.utils.RetryRequestedFromPolicy | from dagster._core.definitions.events import Failure, RetryRequested
class RetryRequestedFromPolicy(RetryRequested):
"""Subclass to indicate origin of retry request is policy.""" |
class RetryRequestedFromPolicy(RetryRequested):
'''Subclass to indicate origin of retry request is policy.'''
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 | 1 | 0 | 0 |
21,665 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/resources_init.py | dagster._core.execution.resources_init.InitializedResource | from typing import AbstractSet, Any, Callable, Optional, Union, cast
class InitializedResource:
"""Utility class to wrap the untyped resource object emitted from the user-supplied
resource function. Used for distinguishing from the framework-yielded events in an
`EventGenerationManager`-wrapped event stre... |
class InitializedResource:
'''Utility class to wrap the untyped resource object emitted from the user-supplied
resource function. Used for distinguishing from the framework-yielded events in an
`EventGenerationManager`-wrapped event stream.
'''
def __init__(self, obj: Any, duration: str, is_gener... | 2 | 1 | 4 | 0 | 4 | 0 | 1 | 0.8 | 0 | 3 | 0 | 0 | 1 | 3 | 1 | 1 | 10 | 1 | 5 | 5 | 3 | 4 | 5 | 5 | 3 | 1 | 0 | 0 | 1 |
21,666 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/retries.py | dagster._core.execution.retries.RetryMode | from dagster_shared.serdes import whitelist_for_serdes
from collections.abc import Mapping
from enum import Enum
import dagster._check as check
from typing import TYPE_CHECKING, Optional
@whitelist_for_serdes
class RetryMode(Enum):
ENABLED = 'enabled'
DISABLED = 'disabled'
DEFERRED = 'deferred'
@stati... | @whitelist_for_serdes
class RetryMode(Enum):
@staticmethod
def from_config(config_value: Mapping[str, Mapping]) -> Optional['RetryMode']:
pass
@property
def enabled(self) -> bool:
pass
@property
def disabled(self) -> bool:
pass
@property
def deferred(self) -> boo... | 11 | 0 | 3 | 0 | 3 | 0 | 2 | 0.08 | 1 | 3 | 0 | 0 | 4 | 0 | 5 | 54 | 32 | 5 | 25 | 14 | 15 | 2 | 19 | 10 | 13 | 3 | 4 | 1 | 8 |
21,667 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/retries.py | dagster._core.execution.retries.RetryState | from collections.abc import Mapping
from typing import TYPE_CHECKING, Optional
from collections import defaultdict
import dagster._check as check
class RetryState:
def __init__(self, previous_attempts: Optional[Mapping[str, int]]=None):
self._attempts = defaultdict(int)
for key, val in check.opt_m... |
class RetryState:
def __init__(self, previous_attempts: Optional[Mapping[str, int]]=None):
pass
def get_attempt_count(self, key: str) -> int:
pass
def mark_attempt(self, key: str) -> None:
pass
def snapshot_attempts(self) -> Mapping[str, int]:
pass | 5 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 4 | 0 | 0 | 4 | 1 | 4 | 4 | 16 | 3 | 13 | 7 | 8 | 0 | 11 | 7 | 6 | 2 | 0 | 1 | 5 |
21,668 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/stats.py | dagster._core.execution.stats.RunStepKeyStatsSnapshot | from dagster._record import IHaveNew, record, record_custom
from collections.abc import Iterable, Mapping, Sequence
from dagster._core.definitions import ExpectationResult
from dagster._core.events.log import EventLogEntry
from dagster._serdes import whitelist_for_serdes
import dagster._check as check
from typing impor... | @whitelist_for_serdes
@record_custom
class RunStepKeyStatsSnapshot(IHaveNew):
def __new__(cls, run_id: str, step_key: str, status: Optional[StepEventStatus]=None, start_time: Optional[float]=None, end_time: Optional[float]=None, materialization_events: Optional[Sequence[EventLogEntry]]=None, expectation_results: O... | 4 | 0 | 37 | 0 | 36 | 1 | 1 | 0.02 | 1 | 8 | 3 | 0 | 1 | 0 | 1 | 3 | 50 | 1 | 48 | 15 | 33 | 1 | 14 | 2 | 12 | 1 | 1 | 0 | 1 |
21,669 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/stats.py | dagster._core.execution.stats.RunStepMarker | from dagster._record import IHaveNew, record, record_custom
from dagster._serdes import whitelist_for_serdes
from typing import Any, Optional, cast
import dagster._check as check
@whitelist_for_serdes
@record_custom
class RunStepMarker(IHaveNew):
start_time: Optional[float]
end_time: Optional[float]
key: O... | @whitelist_for_serdes
@record_custom
class RunStepMarker(IHaveNew):
def __new__(cls, start_time: Optional[float]=None, end_time: Optional[float]=None, key: Optional[str]=None):
pass | 4 | 0 | 12 | 0 | 12 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 3 | 17 | 1 | 16 | 7 | 9 | 0 | 6 | 2 | 4 | 1 | 1 | 0 | 1 |
21,670 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/stats.py | dagster._core.execution.stats.RunStepStatsSnapshot | from typing import Any, Optional, cast
from dagster._record import IHaveNew, record, record_custom
from dagster._serdes import whitelist_for_serdes
from collections.abc import Iterable, Mapping, Sequence
@whitelist_for_serdes
@record
class RunStepStatsSnapshot:
run_id: str
step_key_stats: Sequence[RunStepKeySt... | @whitelist_for_serdes
@record
class RunStepStatsSnapshot:
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,671 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/stats.py | dagster._core.execution.stats.StepEventStatus | from enum import Enum
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes
class StepEventStatus(Enum):
SKIPPED = 'SKIPPED'
SUCCESS = 'SUCCESS'
FAILURE = 'FAILURE'
IN_PROGRESS = 'IN_PROGRESS' | @whitelist_for_serdes
class StepEventStatus(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,672 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/submit_asset_runs.py | dagster._core.execution.submit_asset_runs.RunRequestExecutionData | from typing import AbstractSet, NamedTuple, Optional
from dagster._core.remote_representation.external import RemoteExecutionPlan, RemoteJob
class RunRequestExecutionData(NamedTuple):
remote_job: RemoteJob
remote_execution_plan: RemoteExecutionPlan |
class RunRequestExecutionData(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,673 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/execution/telemetry.py | dagster._core.execution.telemetry.RunTelemetryData | from dagster_shared.dagster_model import DagsterModel
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes()
class RunTelemetryData(DagsterModel):
run_id: str
datapoints: dict[str, float] | @whitelist_for_serdes()
class RunTelemetryData(DagsterModel):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 86 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 6 | 0 | 0 |
21,674 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/executor/base.py | dagster._core.executor.base.Executor | from dagster import _check as check
from abc import ABC, abstractmethod
from dagster._core.execution.step_dependency_config import StepDependencyConfig
from dagster._annotations import public
from dagster._utils.error import SerializableErrorInfo
from dagster._core.execution.retries import RetryMode
from collections.ab... | @public
class Executor(ABC):
@public
@abstractmethod
def execute(self, plan_context: 'PlanOrchestrationContext', execution_plan: 'ExecutionPlan') -> Iterator['DagsterEvent']:
'''For the given context and execution plan, orchestrate a series of sub plan executions in a way that satisfies the whole p... | 12 | 2 | 17 | 2 | 11 | 4 | 1 | 0.3 | 1 | 3 | 2 | 4 | 3 | 0 | 3 | 23 | 60 | 8 | 40 | 18 | 23 | 12 | 12 | 9 | 7 | 2 | 4 | 1 | 4 |
21,675 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/executor/child_process_executor.py | dagster._core.executor.child_process_executor.ChildProcessCommand | from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, NamedTuple, Optional, Union
from collections.abc import Iterator
class ChildProcessCommand(ABC):
"""Inherit from this class in order to use this library.
The object must be picklable; instantiate it and pass it to _execute_command_in_child_... |
class ChildProcessCommand(ABC):
'''Inherit from this class in order to use this library.
The object must be picklable; instantiate it and pass it to _execute_command_in_child_process.
'''
@abstractmethod
def execute(self) -> Iterator[Union[ChildProcessEvent, 'DagsterEvent']]:
'''This method... | 3 | 2 | 5 | 1 | 1 | 3 | 1 | 2 | 1 | 2 | 1 | 6 | 1 | 0 | 1 | 21 | 12 | 3 | 3 | 3 | 0 | 6 | 2 | 2 | 0 | 1 | 4 | 0 | 1 |
21,676 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/executor/child_process_executor.py | dagster._core.executor.child_process_executor.ChildProcessCrashException | class ChildProcessCrashException(Exception):
"""Thrown when the child process crashes."""
def __init__(self, pid, exit_code=None):
self.pid = pid
self.exit_code = exit_code
super().__init__() | class ChildProcessCrashException(Exception):
'''Thrown when the child process crashes.'''
def __init__(self, pid, exit_code=None):
pass | 2 | 1 | 4 | 0 | 4 | 0 | 1 | 0.2 | 1 | 1 | 0 | 0 | 1 | 2 | 1 | 11 | 7 | 1 | 5 | 4 | 3 | 1 | 5 | 4 | 3 | 1 | 3 | 0 | 1 |
21,677 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/executor/child_process_executor.py | dagster._core.executor.child_process_executor.ChildProcessDoneEvent | from typing import TYPE_CHECKING, NamedTuple, Optional, Union
class ChildProcessDoneEvent(NamedTuple('ChildProcessDoneEvent', [('pid', int)]), ChildProcessEvent):
pass |
class ChildProcessDoneEvent(NamedTuple('ChildProcessDoneEvent', [('pid', int)]), ChildProcessEvent):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
21,678 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/executor/child_process_executor.py | dagster._core.executor.child_process_executor.ChildProcessEvent | class ChildProcessEvent:
pass | class ChildProcessEvent:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
21,679 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/executor/child_process_executor.py | dagster._core.executor.child_process_executor.ChildProcessStartEvent | from typing import TYPE_CHECKING, NamedTuple, Optional, Union
class ChildProcessStartEvent(NamedTuple('ChildProcessStartEvent', [('pid', int)]), ChildProcessEvent):
pass |
class ChildProcessStartEvent(NamedTuple('ChildProcessStartEvent', [('pid', int)]), ChildProcessEvent):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 3 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
21,680 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/executor/child_process_executor.py | dagster._core.executor.child_process_executor.ChildProcessSystemErrorEvent | from dagster._utils.error import SerializableErrorInfo, serializable_error_info_from_exc_info
from typing import TYPE_CHECKING, NamedTuple, Optional, Union
class ChildProcessSystemErrorEvent(NamedTuple('ChildProcessSystemErrorEvent', [('pid', int), ('error_info', SerializableErrorInfo)]), ChildProcessEvent):
pass |
class ChildProcessSystemErrorEvent(NamedTuple('ChildProcessSystemErrorEvent', [('pid', int), ('error_info', SerializableErrorInfo)]), ChildProcessEvent):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 6 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
21,681 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/executor/in_process.py | dagster._core.executor.in_process.InProcessExecutor | import os
from dagster._core.execution.context_creation_job import PlanExecutionContextManager
from dagster._core.execution.plan.plan import ExecutionPlan
from collections.abc import Iterator
from dagster._core.execution.step_dependency_config import StepDependencyConfig
from dagster._utils.timing import time_execution... |
class InProcessExecutor(Executor):
def __init__(self, retries: RetryMode, step_dependency_config: StepDependencyConfig=StepDependencyConfig.default(), marker_to_close:
pass
@property
def retries(self) -> RetryMode:
pass
@property
def step_dependency_config(self) -> StepDependencyCo... | 7 | 0 | 14 | 1 | 13 | 0 | 1 | 0 | 1 | 8 | 6 | 0 | 3 | 2 | 3 | 26 | 46 | 6 | 40 | 11 | 33 | 0 | 14 | 7 | 10 | 1 | 5 | 1 | 3 |
21,682 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/executor/init.py | dagster._core.executor.init.InitExecutorContext | from collections.abc import Mapping
from typing import NamedTuple
from dagster._core.instance import DagsterInstance
from dagster._annotations import PublicAttr, public
import dagster._check as check
from dagster._core.definitions import ExecutorDefinition, IJob
@public
class InitExecutorContext(NamedTuple('InitExecut... | @public
class InitExecutorContext(NamedTuple('InitExecutorContext', [('job', PublicAttr[IJob]), ('executor_def', PublicAttr[ExecutorDefinition]), ('executor_config', PublicAttr[Mapping[str, object]]), ('instance', PublicAttr[DagsterInstance])])):
'''Executor-specific initialization context.
Args:
job (I... | 3 | 1 | 14 | 0 | 14 | 0 | 1 | 0.32 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 1 | 35 | 2 | 25 | 18 | 7 | 8 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,683 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/executor/multiprocess.py | dagster._core.executor.multiprocess.MultiprocessExecutor | from dagster._core.execution.retries import RetryMode
import os
from dagster._core.errors import DagsterExecutionInterruptedError, DagsterSubprocessError, DagsterUnmetExecutorRequirementsError
from dagster._core.executor.child_process_executor import ChildProcessCommand, ChildProcessCrashException, ChildProcessEvent, C... |
class MultiprocessExecutor(Executor):
def __init__(self, retries: RetryMode, max_concurrent: Optional[int], tag_concurrency_limits: Optional[list[dict[str, Any]]]=None, start_method: Optional[str]=None, explicit_forkserver_preload: Optional[Sequence[str]]=None, step_dependency_config: StepDependencyConfig=StepDep... | 7 | 0 | 83 | 9 | 70 | 4 | 11 | 0.05 | 1 | 22 | 10 | 0 | 3 | 5 | 3 | 26 | 252 | 29 | 213 | 47 | 199 | 11 | 108 | 35 | 104 | 27 | 5 | 7 | 33 |
21,684 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/executor/multiprocess.py | dagster._core.executor.multiprocess.MultiprocessExecutorChildProcessCommand | import threading
from dagster._core.definitions.metadata import MetadataValue
from dagster._core.definitions.repository_definition import RepositoryLoadData
from dagster._core.execution.api import create_execution_plan, execute_plan_iterator
from dagster._core.instance import DagsterInstance
from dagster._core.executio... |
class MultiprocessExecutorChildProcessCommand(ChildProcessCommand):
def __init__(self, run_config: Mapping[str, object], dagster_run: 'DagsterRun', step_key: str, instance_ref: 'InstanceRef', term_event: Any, recon_pipeline: ReconstructableJob, retry_mode: RetryMode, known_state: Optional[KnownExecutionState], re... | 3 | 0 | 29 | 1 | 28 | 1 | 1 | 0.04 | 1 | 9 | 4 | 0 | 2 | 9 | 2 | 23 | 59 | 2 | 56 | 28 | 42 | 2 | 23 | 16 | 20 | 1 | 5 | 2 | 2 |
21,685 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/executor/step_delegating/step_delegating_executor.py | dagster._core.executor.step_delegating.step_delegating_executor.StepDelegatingExecutor | from dagster._core.executor.step_delegating.step_handler.base import StepHandler, StepHandlerContext
from dagster._core.executor.base import Executor
from dagster._core.execution.plan.objects import StepFailureData
from typing import TYPE_CHECKING, Any, Optional, cast
from dagster._grpc.types import ExecuteStepArgs
fro... |
class StepDelegatingExecutor(Executor):
'''This executor tails the event log for events from the steps that it spins up. It also
sometimes creates its own events - when it does, that event is automatically written to the
event log. But we wait until we later tail it from the event log database before yield... | 10 | 1 | 61 | 6 | 52 | 3 | 6 | 0.06 | 1 | 27 | 17 | 0 | 6 | 9 | 6 | 29 | 377 | 42 | 316 | 56 | 295 | 20 | 122 | 40 | 115 | 25 | 5 | 9 | 35 |
21,686 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/executor/step_delegating/step_handler/base.py | dagster._core.executor.step_delegating.step_handler.base.CheckStepHealthResult | from dagster import DagsterInstance, _check as check
from typing import NamedTuple, Optional
class CheckStepHealthResult(NamedTuple('_CheckStepHealthResult', [('is_healthy', bool), ('unhealthy_reason', Optional[str])])):
def __new__(cls, is_healthy: bool, unhealthy_reason: Optional[str]=None):
return supe... |
class CheckStepHealthResult(NamedTuple('_CheckStepHealthResult', [('is_healthy', bool), ('unhealthy_reason', Optional[str])])):
def __new__(cls, is_healthy: bool, unhealthy_reason: Optional[str]=None):
pass
@staticmethod
def healthy() -> 'CheckStepHealthResult':
pass
@staticmethod
... | 6 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 1 | 0 | 3 | 3 | 19 | 2 | 17 | 10 | 7 | 0 | 7 | 4 | 3 | 1 | 1 | 0 | 3 |
21,687 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/executor/step_delegating/step_handler/base.py | dagster._core.executor.step_delegating.step_handler.base.StepHandler | from abc import ABC, abstractmethod
from collections.abc import Iterator, Mapping, Sequence
from dagster._core.events import DagsterEvent
class StepHandler(ABC):
@property
@abstractmethod
def name(self) -> str:
pass
@abstractmethod
def launch_step(self, step_handler_context: StepHandlerCo... |
class StepHandler(ABC):
@property
@abstractmethod
def name(self) -> str:
pass
@abstractmethod
def launch_step(self, step_handler_context: StepHandlerContext) -> Iterator[DagsterEvent]:
pass
@abstractmethod
def check_step_health(self, step_handler_context: StepHandlerContext... | 10 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 5 | 3 | 1 | 4 | 0 | 4 | 24 | 17 | 3 | 14 | 9 | 4 | 0 | 9 | 5 | 4 | 1 | 4 | 0 | 4 |
21,688 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/executor/step_delegating/step_handler/base.py | dagster._core.executor.step_delegating.step_handler.base.StepHandlerContext | from dagster import DagsterInstance, _check as check
from dagster._grpc.types import ExecuteStepArgs
from dagster._core.storage.dagster_run import DagsterRun
from collections.abc import Iterator, Mapping, Sequence
from dagster._core.execution.context.system import IStepContext, PlanOrchestrationContext
from dagster._co... |
class StepHandlerContext:
def __init__(self, instance: DagsterInstance, plan_context: PlanOrchestrationContext, steps: Sequence[ExecutionStep], execute_step_args: ExecuteStepArgs, dagster_run: Optional[DagsterRun]=None) -> None:
pass
@property
def execute_step_args(self) -> ExecuteStepArgs:
... | 11 | 0 | 5 | 0 | 5 | 0 | 1 | 0.03 | 0 | 8 | 5 | 0 | 6 | 5 | 6 | 6 | 41 | 6 | 34 | 25 | 16 | 1 | 23 | 14 | 16 | 3 | 0 | 2 | 8 |
21,689 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/instance/config.py | dagster._core.instance.config.ConcurrencyConfig | from collections.abc import Mapping, Sequence
from dagster._record import record
from typing import TYPE_CHECKING, Any, Optional, cast
@record
class ConcurrencyConfig:
pool_config: PoolConfig
run_queue_config: Optional['RunQueueConfig']
@staticmethod
def from_concurrency_settings(concurrency_settings:... | @record
class ConcurrencyConfig:
@staticmethod
def from_concurrency_settings(concurrency_settings: Mapping[str, Any], run_coordinator_run_queue_config: Optional['RunQueueConfig']) -> 'ConcurrencyConfig':
pass | 4 | 0 | 51 | 4 | 46 | 1 | 5 | 0.02 | 0 | 7 | 3 | 0 | 0 | 0 | 1 | 1 | 56 | 5 | 50 | 13 | 43 | 1 | 18 | 9 | 15 | 5 | 0 | 1 | 5 |
21,690 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/instance/config.py | dagster._core.instance.config.PoolConfig | from typing import TYPE_CHECKING, Any, Optional, cast
from dagster._record import record
@record
class PoolConfig:
pool_granularity: Optional[PoolGranularity]
default_pool_limit: Optional[int]
op_granularity_run_buffer: Optional[int] | @record
class PoolConfig:
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,691 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/instance/config.py | dagster._core.instance.config.PoolGranularity | from enum import Enum
class PoolGranularity(Enum):
OP = 'op'
RUN = 'run' |
class PoolGranularity(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,692 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/instance/ref.py | dagster._core.instance.ref.InstanceRef | from dagster._serdes import ConfigurableClassData, class_from_code_pointer, whitelist_for_serdes
import yaml
import dagster._check as check
from typing import TYPE_CHECKING, Any, NamedTuple, Optional
from collections.abc import Mapping, Sequence
from dagster._core.instance.config import DAGSTER_CONFIG_YAML_FILENAME, da... | @whitelist_for_serdes
@public
class InstanceRef(NamedTuple('_InstanceRef', [('local_artifact_storage_data', ConfigurableClassData), ('compute_logs_data', ConfigurableClassData), ('scheduler_data', Optional[ConfigurableClassData]), ('run_coordinator_data', Optional[ConfigurableClassData]), ('run_launcher_data', Optional... | 38 | 1 | 20 | 1 | 18 | 1 | 2 | 0.09 | 1 | 17 | 10 | 0 | 14 | 0 | 17 | 17 | 407 | 42 | 349 | 102 | 267 | 33 | 81 | 49 | 52 | 5 | 1 | 1 | 34 |
21,693 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/launcher/base.py | dagster._core.launcher.base.CheckRunHealthResult | from typing import TYPE_CHECKING, NamedTuple, Optional
class CheckRunHealthResult(NamedTuple):
"""Result of a check_run_worker_health call."""
status: WorkerStatus
msg: Optional[str] = None
transient: Optional[bool] = None
run_worker_id: Optional[str] = None
def __str__(self) -> str:
r... |
class CheckRunHealthResult(NamedTuple):
'''Result of a check_run_worker_health call.'''
def __str__(self) -> str:
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 0.29 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 10 | 2 | 7 | 5 | 5 | 2 | 7 | 5 | 5 | 1 | 1 | 0 | 1 |
21,694 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/launcher/base.py | dagster._core.launcher.base.LaunchRunContext | from dagster._core.storage.dagster_run import DagsterRun
from dagster._core.origin import JobPythonOrigin
from typing import TYPE_CHECKING, NamedTuple, Optional
class LaunchRunContext(NamedTuple):
"""Context available within a run launcher's launch_run call."""
dagster_run: DagsterRun
workspace: Optional['... |
class LaunchRunContext(NamedTuple):
'''Context available within a run launcher's launch_run call.'''
@property
def job_code_origin(self) -> Optional[JobPythonOrigin]:
pass | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 0.17 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 9 | 2 | 6 | 3 | 3 | 1 | 5 | 2 | 3 | 1 | 1 | 0 | 1 |
21,695 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/launcher/base.py | dagster._core.launcher.base.ResumeRunContext | from typing import TYPE_CHECKING, NamedTuple, Optional
from dagster._core.storage.dagster_run import DagsterRun
from dagster._core.origin import JobPythonOrigin
class ResumeRunContext(NamedTuple):
"""Context available within a run launcher's resume_run call."""
dagster_run: DagsterRun
workspace: Optional['... |
class ResumeRunContext(NamedTuple):
'''Context available within a run launcher's resume_run call.'''
@property
def job_code_origin(self) -> Optional[JobPythonOrigin]:
pass | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 0.14 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 10 | 2 | 7 | 4 | 4 | 1 | 6 | 3 | 4 | 1 | 1 | 0 | 1 |
21,696 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/launcher/base.py | dagster._core.launcher.base.RunLauncher | from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, NamedTuple, Optional
from dagster._annotations import public
from dagster._core.storage.dagster_run import DagsterRun
from dagster._core.instance import MayHaveInstanceWeakref, T_DagsterInstance
@public
class RunLauncher(ABC, MayHaveInstanceWeakref[... | @public
class RunLauncher(ABC, MayHaveInstanceWeakref[T_DagsterInstance]):
@abstractmethod
def launch_run(self, context: LaunchRunContext) -> None:
'''Launch a run.
This method should begin the execution of the specified run, and may emit engine events.
Runs should be created in the ins... | 15 | 5 | 5 | 0 | 2 | 2 | 1 | 0.74 | 2 | 7 | 3 | 12 | 9 | 0 | 9 | 29 | 58 | 11 | 27 | 16 | 11 | 20 | 16 | 10 | 6 | 1 | 4 | 0 | 9 |
21,697 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/launcher/base.py | dagster._core.launcher.base.WorkerStatus | from dagster._serdes import whitelist_for_serdes
from enum import Enum
@whitelist_for_serdes
class WorkerStatus(Enum):
RUNNING = 'RUNNING'
NOT_FOUND = 'NOT_FOUND'
FAILED = 'FAILED'
SUCCESS = 'SUCCESS'
UNKNOWN = 'UNKNOWN' | @whitelist_for_serdes
class WorkerStatus(Enum):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 6 | 0 | 6 | 6 | 5 | 0 | 6 | 6 | 5 | 0 | 4 | 0 | 0 |
21,698 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/launcher/default_run_launcher.py | dagster._core.launcher.default_run_launcher.DefaultRunLauncher | import dagster_shared.seven as seven
from dagster._utils.merger import merge_dicts
from dagster import _check as check
from collections.abc import Mapping
import time
from typing import TYPE_CHECKING, Any, Optional, cast
from dagster._config.config_schema import UserConfigSchema
from dagster._core.storage.dagster_run i... | @public
class DefaultRunLauncher(RunLauncher, ConfigurableClass):
'''Launches runs against running GRPC servers.'''
def __init__(self, inst_data: Optional[ConfigurableClassData]=None):
pass
@property
def inst_data(self) -> Optional[ConfigurableClassData]:
pass
@classmethod
def c... | 15 | 1 | 19 | 3 | 15 | 1 | 3 | 0.07 | 2 | 15 | 8 | 1 | 6 | 2 | 9 | 41 | 183 | 39 | 138 | 40 | 113 | 9 | 71 | 29 | 57 | 5 | 5 | 2 | 24 |
21,699 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/launcher/sync_in_memory_run_launcher.py | dagster._core.launcher.sync_in_memory_run_launcher.SyncInMemoryRunLauncher | from typing import Any, Optional
from dagster._core.launcher import LaunchRunContext, RunLauncher
import dagster._check as check
from dagster._utils.hosted_user_process import recon_job_from_origin
from dagster._core.execution.api import execute_run
from typing_extensions import Self
from dagster._serdes.config_class i... |
class SyncInMemoryRunLauncher(RunLauncher, ConfigurableClass):
'''This run launcher launches runs synchronously, in memory, and is intended only for test.
Use the :py:class:`dagster.DefaultRunLauncher`.
'''
def __init__(self, inst_data: Optional[ConfigurableClassData]=None):
pass
@prop... | 10 | 1 | 3 | 0 | 3 | 0 | 1 | 0.18 | 2 | 5 | 1 | 0 | 4 | 3 | 6 | 38 | 33 | 8 | 22 | 16 | 10 | 4 | 17 | 11 | 10 | 1 | 5 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.