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,700 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/loader.py | dagster._core.loader.LoadableBy | from typing import TYPE_CHECKING, Generic, Optional
from abc import ABC, abstractmethod
from collections.abc import Iterable
from typing_extensions import Self, TypeVar
class LoadableBy(ABC, Generic[TKey, TContext]):
"""Make An object Loadable by ID of type TKey using a LoadingContext."""
@classmethod
asy... |
class LoadableBy(ABC, Generic[TKey, TContext]):
'''Make An object Loadable by ID of type TKey using a LoadingContext.'''
@classmethod
async def _batch_load(cls, keys: Iterable[TKey], context: TContext) -> Iterable[Optional[Self]]:
pass
@classmethod
@abstractmethod
def _blocking_batch_load(c... | 16 | 6 | 5 | 0 | 4 | 2 | 1 | 0.41 | 2 | 5 | 1 | 1 | 0 | 0 | 7 | 29 | 55 | 7 | 34 | 26 | 12 | 14 | 20 | 13 | 12 | 1 | 4 | 0 | 7 |
21,701 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/loader.py | dagster._core.loader.LoadingContext | import dagster._check as check
from dagster._utils.aiodataloader import BlockingDataLoader, DataLoader
from abc import ABC, abstractmethod
from functools import partial
class LoadingContext(ABC):
"""A scoped object in which Loadable objects will be fetched in batches and cached.
Expected to be implemented by ... |
class LoadingContext(ABC):
'''A scoped object in which Loadable objects will be fetched in batches and cached.
Expected to be implemented by request scoped context objects that have access to the DagsterInstance.
'''
@property
@abstractmethod
def instance(self) -> 'DagsterInstance':
pas... | 9 | 1 | 5 | 1 | 5 | 1 | 2 | 0.22 | 1 | 7 | 3 | 2 | 4 | 0 | 4 | 24 | 34 | 8 | 23 | 10 | 14 | 5 | 16 | 8 | 11 | 3 | 4 | 2 | 7 |
21,702 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/log_manager.py | dagster._core.log_manager.DagsterLogHandler | from typing import TYPE_CHECKING, Any, Final, Optional, TypedDict, Union, cast
import logging
import threading
from collections.abc import Mapping, Sequence
class DagsterLogHandler(logging.Handler):
"""Internal class used to turn regular logs into Dagster logs by adding Dagster-specific
metadata (such as job_n... |
class DagsterLogHandler(logging.Handler):
'''Internal class used to turn regular logs into Dagster logs by adding Dagster-specific
metadata (such as job_name or step_key), as well as reformatting the underlying message.
Note: The `loggers` argument will be populated with the set of @loggers supplied to the... | 9 | 4 | 12 | 0 | 9 | 3 | 2 | 0.49 | 1 | 11 | 1 | 0 | 7 | 4 | 7 | 27 | 104 | 10 | 63 | 26 | 49 | 31 | 38 | 20 | 30 | 4 | 3 | 3 | 13 |
21,703 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/log_manager.py | dagster._core.log_manager.DagsterLogHandlerMetadata | from typing import TYPE_CHECKING, Any, Final, Optional, TypedDict, Union, cast
from collections.abc import Mapping, Sequence
class DagsterLogHandlerMetadata(TypedDict):
"""Internal class used to represent the context in which a given message was logged (i.e. the
step, run, resource, etc.). This is stored on th... |
class DagsterLogHandlerMetadata(TypedDict):
'''Internal class used to represent the context in which a given message was logged (i.e. the
step, run, resource, etc.). This is stored on the `DagsterLogHandler` (and `DagsterLogManager`) and
merged into the specific metadata for each log event to form a `Dagst... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.63 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 1 | 8 | 1 | 7 | 5 | 8 | 1 | 7 | 0 | 1 | 0 | 0 |
21,704 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/log_manager.py | dagster._core.log_manager.DagsterLogManager | from dagster._utils.log import get_dagster_logger
import logging
from typing import TYPE_CHECKING, Any, Final, Optional, TypedDict, Union, cast
import dagster._check as check
from dagster._annotations import public
from dagster._core.utils import coerce_valid_log_level, make_new_run_id
from collections.abc import Mappi... | @public
class DagsterLogManager(logging.Logger):
'''Centralized dispatch for logging from user code.
Handles the construction of uniform structured log messages and passes them through to the
underlying loggers/handlers.
An instance of the log manager is made available to ops as ``context.log``. Users s... | 12 | 5 | 16 | 1 | 11 | 4 | 2 | 0.48 | 1 | 8 | 2 | 0 | 7 | 2 | 8 | 36 | 161 | 22 | 94 | 42 | 60 | 45 | 35 | 17 | 26 | 8 | 3 | 3 | 18 |
21,705 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/log_manager.py | dagster._core.log_manager.DagsterLogRecordMetadata | from collections.abc import Mapping, Sequence
from typing import TYPE_CHECKING, Any, Final, Optional, TypedDict, Union, cast
class DagsterLogRecordMetadata(TypedDict):
"""Internal class representing the full metadata on a log record after it has been modified by
the `DagsterLogHandler`. It contains all the fie... |
class DagsterLogRecordMetadata(TypedDict):
'''Internal class representing the full metadata on a log record after it has been modified by
the `DagsterLogHandler`. It contains all the fields on `DagsterLogHandlerMetadata`, an optional
`DagsterEvent`, and some fields concerning the individual log message.
... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.31 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 18 | 1 | 13 | 1 | 12 | 4 | 13 | 1 | 12 | 0 | 1 | 0 | 0 |
21,706 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/op_concurrency_limits_counter.py | dagster._core.op_concurrency_limits_counter.GlobalOpConcurrencyLimitsCounter | from collections import defaultdict
from typing import TYPE_CHECKING, Optional
from collections.abc import Mapping, Sequence
import dagster._check as check
import os
from dagster._core.storage.dagster_run import IN_PROGRESS_RUN_STATUSES, DagsterRun, DagsterRunStatus, RunOpConcurrency, RunRecord
from dagster._core.stora... |
class GlobalOpConcurrencyLimitsCounter:
def __init__(self, instance: DagsterInstance, runs: Sequence[DagsterRun], in_progress_run_records: Sequence[RunRecord], concurrency_keys: set[str], pool_limits: Sequence[PoolLimit], slot_count_offset: int=0, pool_granularity: Optional[PoolGranularity]=None):
pass
... | 11 | 0 | 19 | 2 | 15 | 2 | 5 | 0.13 | 0 | 9 | 1 | 0 | 10 | 8 | 10 | 10 | 201 | 30 | 151 | 46 | 133 | 20 | 99 | 39 | 88 | 11 | 0 | 3 | 45 |
21,707 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/origin.py | dagster._core.origin.JobPythonOrigin | from dagster._serdes import create_snapshot_id, whitelist_for_serdes
from dagster._core.code_pointer import CodePointer
from typing import Any, Final, NamedTuple, Optional
import dagster._check as check
@whitelist_for_serdes(storage_name='PipelinePythonOrigin', storage_field_names={'job_name': 'pipeline_name'})
class ... | @whitelist_for_serdes(storage_name='PipelinePythonOrigin', storage_field_names={'job_name': 'pipeline_name'})
class JobPythonOrigin(NamedTuple('_JobPythonOrigin', [('job_name', str), ('repository_origin', RepositoryPythonOrigin)])):
def __new__(cls, job_name: str, repository_origin: RepositoryPythonOrigin):
... | 7 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 4 | 0 | 4 | 4 | 25 | 3 | 22 | 14 | 8 | 0 | 9 | 5 | 4 | 1 | 1 | 0 | 4 |
21,708 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/origin.py | dagster._core.origin.RepositoryPythonOrigin | from collections.abc import Mapping, Sequence
from typing import Any, Final, NamedTuple, Optional
import dagster._check as check
from dagster._core.code_pointer import CodePointer
from dagster._serdes import create_snapshot_id, whitelist_for_serdes
@whitelist_for_serdes
class RepositoryPythonOrigin(NamedTuple('_Reposi... | @whitelist_for_serdes
class RepositoryPythonOrigin(NamedTuple('_RepositoryPythonOrigin', [('executable_path', str), ('code_pointer', CodePointer), ('container_image', Optional[str]), ('entry_point', Optional[Sequence[str]]), ('container_context', Optional[Mapping[str, Any]])])):
'''Args:
executable_path (str): ... | 5 | 1 | 10 | 0 | 10 | 0 | 2 | 0.29 | 1 | 7 | 2 | 0 | 3 | 0 | 3 | 3 | 56 | 3 | 41 | 22 | 19 | 12 | 8 | 4 | 4 | 3 | 1 | 0 | 5 |
21,709 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/client.py | dagster._core.pipes.client.PipesClient | from typing import TYPE_CHECKING, Any, Optional, Union
from dagster_pipes import DagsterPipesError, PipesContextData, PipesExtras, PipesOpenedData, PipesParams
from dagster._core.execution.context.op_execution_context import OpExecutionContext
from abc import ABC, abstractmethod
from dagster._annotations import public
... | @public
class PipesClient(ABC):
'''Pipes client base class.
Pipes clients for specific external environments should subclass this.
'''
@public
@abstractmethod
def run(self, *, context: Union[OpExecutionContext, AssetExecutionContext], extras: Optional[PipesExtras]=None, **kwargs) -> 'PipesCl... | 5 | 2 | 19 | 2 | 7 | 10 | 1 | 1.3 | 1 | 2 | 2 | 5 | 1 | 0 | 1 | 21 | 27 | 4 | 10 | 9 | 0 | 13 | 2 | 2 | 0 | 1 | 4 | 0 | 1 |
21,710 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/client.py | dagster._core.pipes.client.PipesClientCompletedInvocation | from collections.abc import Iterator, Mapping, Sequence
from dagster._core.definitions.result import MaterializeResult
from typing import TYPE_CHECKING, Any, Optional, Union
from dagster._core.definitions.metadata import MetadataValue, RawMetadataMapping, normalize_metadata
from dagster._core.definitions.asset_checks.a... |
class PipesClientCompletedInvocation:
'''A wrapper for the results of a pipes client invocation, typically returned from `PipesClient.run`.
Args:
session (PipesSession): The Pipes session that was used to run the external process.
metadata (Optional[RawMetadataMapping]): Arbitrary metadata that... | 8 | 6 | 11 | 2 | 5 | 5 | 1 | 1.13 | 0 | 7 | 3 | 0 | 6 | 2 | 6 | 6 | 83 | 17 | 31 | 22 | 11 | 35 | 14 | 9 | 7 | 1 | 0 | 0 | 6 |
21,711 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/client.py | dagster._core.pipes.client.PipesContextInjector | from dagster_pipes import DagsterPipesError, PipesContextData, PipesExtras, PipesOpenedData, PipesParams
from abc import ABC, abstractmethod
from dagster._annotations import public
from collections.abc import Iterator, Mapping, Sequence
from contextlib import contextmanager
@public
class PipesContextInjector(ABC):
... | @public
class PipesContextInjector(ABC):
@abstractmethod
@contextmanager
def inject_context(self, context_data: 'PipesContextData') -> Iterator[PipesParams]:
'''A `@contextmanager` that injects context data into the external process.
This method should write the context data to a location a... | 7 | 2 | 10 | 2 | 1 | 7 | 1 | 2.33 | 1 | 2 | 0 | 8 | 2 | 0 | 2 | 22 | 25 | 5 | 6 | 5 | 0 | 14 | 3 | 3 | 0 | 1 | 4 | 0 | 2 |
21,712 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/client.py | dagster._core.pipes.client.PipesMessageReader | from contextlib import contextmanager
from dagster._annotations import public
from dagster_pipes import DagsterPipesError, PipesContextData, PipesExtras, PipesOpenedData, PipesParams
from abc import ABC, abstractmethod
from collections.abc import Iterator, Mapping, Sequence
from dagster._core.pipes.context import Pipes... | @public
class PipesMessageReader(ABC):
@abstractmethod
@contextmanager
def read_messages(self, handler: 'PipesMessageHandler') -> Iterator[PipesParams]:
'''A `@contextmanager` that reads messages reported by an external process.
This method should start a thread to continuously read message... | 9 | 4 | 10 | 1 | 1 | 7 | 1 | 3.63 | 1 | 4 | 2 | 7 | 4 | 0 | 4 | 24 | 45 | 8 | 8 | 7 | 0 | 29 | 5 | 5 | 0 | 1 | 4 | 0 | 4 |
21,713 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/context.py | dagster._core.pipes.context.PipesLaunchedData | from typing import TYPE_CHECKING, Any, Literal, Optional, TypedDict, Union, cast
from collections.abc import Iterator, Mapping, Sequence
class PipesLaunchedData(TypedDict):
"""Payload generated in the orchestration process after external process startup
containing arbitrary information about the external proce... |
class PipesLaunchedData(TypedDict):
'''Payload generated in the orchestration process after external process startup
containing arbitrary information about the external process.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
21,714 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/context.py | dagster._core.pipes.context.PipesMessageHandler | from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckSeverity
from queue import Queue
from dagster._core.definitions.metadata import ExternalMetadataValue, MetadataValue, metadata_map_from_external
from collections.abc import Iterator, Mapping, Sequence
import sys
from dagster._core.definitions... | null | 22 | 2 | 12 | 0 | 12 | 1 | 3 | 0.11 | 0 | 29 | 20 | 0 | 17 | 8 | 18 | 18 | 252 | 20 | 215 | 62 | 172 | 23 | 103 | 37 | 84 | 20 | 0 | 1 | 49 |
21,715 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/context.py | dagster._core.pipes.context.PipesSession | from dataclasses import dataclass, field
from dagster._annotations import public
from dagster_pipes import DAGSTER_PIPES_CONTEXT_ENV_VAR, DAGSTER_PIPES_MESSAGES_ENV_VAR, Method, PipesContextData, PipesDataProvenance, PipesException, PipesExtras, PipesMessage, PipesOpenedData, PipesParams, PipesTimeWindow, _env_var_to_c... | null | 19 | 8 | 13 | 2 | 6 | 5 | 1 | 1.12 | 0 | 10 | 2 | 0 | 9 | 0 | 9 | 9 | 171 | 32 | 66 | 30 | 42 | 74 | 37 | 16 | 27 | 2 | 0 | 1 | 11 |
21,716 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/merge_streams.py | dagster._core.pipes.merge_streams.LogItem | from dataclasses import dataclass, field
from typing import Any, Callable
@dataclass(frozen=True, order=True)
class LogItem:
"""LogItem to put into the log priority queue."""
timestamp: str
log: Any = field(compare=False) | @dataclass(frozen=True, order=True)
class LogItem:
'''LogItem to put into the log priority queue.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 3 | 2 | 2 | 1 | 3 | 2 | 2 | 0 | 0 | 0 | 0 |
21,717 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/subprocess.py | dagster._core.pipes.subprocess.PipesSubprocessClient | from dagster._core.definitions.resource_annotation import TreatAsResourceParam
import os
from dagster._core.pipes.utils import PipesTempFileContextInjector, PipesTempFileMessageReader, open_pipes_session
from dagster_pipes import PipesExtras
from dagster import _check as check
from collections.abc import Mapping, Seque... | null | 7 | 2 | 30 | 1 | 25 | 4 | 3 | 0.38 | 2 | 15 | 9 | 0 | 2 | 7 | 3 | 24 | 116 | 8 | 78 | 32 | 55 | 30 | 25 | 12 | 21 | 6 | 5 | 3 | 8 |
21,718 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/utils.py | dagster._core.pipes.utils.PipesBlobStoreMessageReader | from abc import ABC, abstractmethod
from dagster_pipes import PIPES_PROTOCOL_VERSION_FIELD, PipesContextData, PipesDefaultContextLoader, PipesDefaultMessageWriter, PipesExtras, PipesOpenedData, PipesParams
from dagster._annotations import public
from typing import IO, Optional, TypeVar, Union
from collections.abc impor... | @public
class PipesBlobStoreMessageReader(PipesThreadedMessageReader):
'''Message reader that reads a sequence of message chunks written by an external process into a
blob store such as S3, Azure blob storage, or GCS.
The reader maintains a counter, starting at 1, that is synchronized with a message writer ... | 6 | 1 | 6 | 0 | 5 | 1 | 1 | 1 | 1 | 6 | 0 | 3 | 3 | 0 | 3 | 38 | 46 | 8 | 19 | 12 | 8 | 19 | 12 | 5 | 8 | 2 | 6 | 1 | 4 |
21,719 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/utils.py | dagster._core.pipes.utils.PipesChunkedLogReader | import time
from typing import IO, Optional, TypeVar, Union
from threading import Event, Thread
from abc import ABC, abstractmethod
from dagster._core.errors import DagsterInvariantViolationError, DagsterPipesExecutionError
from dagster_pipes import PIPES_PROTOCOL_VERSION_FIELD, PipesContextData, PipesDefaultContextLoa... |
class PipesChunkedLogReader(PipesLogReader):
'''Reader for reading stdout/stderr logs from a blob store such as S3, Azure blob storage, or GCS.
Args:
interval (float): interval in seconds between attempts to download a chunk.
target_stream (IO[str]): The stream to which to write the logs. Typci... | 10 | 1 | 7 | 0 | 6 | 1 | 2 | 0.22 | 1 | 8 | 1 | 4 | 7 | 4 | 7 | 34 | 65 | 9 | 46 | 24 | 31 | 10 | 33 | 16 | 25 | 7 | 5 | 4 | 14 |
21,720 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/utils.py | dagster._core.pipes.utils.PipesEnvContextInjector | from dagster._core.pipes.client import PipesContextInjector, PipesLaunchedData, PipesMessageReader
from contextlib import contextmanager
from dagster_pipes import PIPES_PROTOCOL_VERSION_FIELD, PipesContextData, PipesDefaultContextLoader, PipesDefaultMessageWriter, PipesExtras, PipesOpenedData, PipesParams
from dagster.... | @public
class PipesEnvContextInjector(PipesContextInjector):
'''Context injector that injects context data into the external process by injecting it directly into the external process environment.'''
@contextmanager
def inject_context(self, context_data: 'PipesContextData') -> Iterator[PipesParams]:
... | 5 | 2 | 9 | 1 | 4 | 4 | 1 | 1 | 1 | 3 | 1 | 1 | 2 | 0 | 2 | 24 | 22 | 4 | 9 | 7 | 2 | 9 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
21,721 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/utils.py | dagster._core.pipes.utils.PipesFileContextInjector | from dagster_pipes import PIPES_PROTOCOL_VERSION_FIELD, PipesContextData, PipesDefaultContextLoader, PipesDefaultMessageWriter, PipesExtras, PipesOpenedData, PipesParams
from dagster._annotations import public
from dagster import OpExecutionContext, _check as check
from contextlib import contextmanager
import json
from... | @public
class PipesFileContextInjector(PipesContextInjector):
'''Context injector that injects context data into the external process by writing it to a
specified file.
Args:
path (str): The path of a file to which to write context data. The file will be deleted on
close of the pipes ses... | 6 | 2 | 7 | 1 | 4 | 3 | 1 | 1 | 1 | 3 | 1 | 0 | 3 | 1 | 3 | 25 | 34 | 6 | 14 | 7 | 9 | 14 | 12 | 5 | 8 | 2 | 5 | 2 | 4 |
21,722 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/utils.py | dagster._core.pipes.utils.PipesFileMessageReader | import sys
from collections.abc import Iterator, Sequence
from dagster import OpExecutionContext, _check as check
from dagster._core.pipes.client import PipesContextInjector, PipesLaunchedData, PipesMessageReader
from threading import Event, Thread
from contextlib import contextmanager
from dagster_pipes import PIPES_P... | @public
class PipesFileMessageReader(PipesMessageReader):
'''Message reader that reads messages by tailing a specified file.
Args:
path (str): The path of the file to which messages will be written. The file will be deleted
on close of the pipes session.
include_stdio_in_messages (bo... | 8 | 2 | 11 | 0 | 9 | 2 | 2 | 0.33 | 1 | 7 | 2 | 0 | 5 | 4 | 5 | 29 | 72 | 8 | 49 | 20 | 37 | 16 | 30 | 14 | 24 | 3 | 5 | 2 | 9 |
21,723 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/utils.py | dagster._core.pipes.utils.PipesLogReader | from dagster_pipes import PIPES_PROTOCOL_VERSION_FIELD, PipesContextData, PipesDefaultContextLoader, PipesDefaultMessageWriter, PipesExtras, PipesOpenedData, PipesParams
from threading import Event, Thread
from abc import ABC, abstractmethod
from typing import IO, Optional, TypeVar, Union
class PipesLogReader(ABC):
... |
class PipesLogReader(ABC):
@abstractmethod
def start(self, params: PipesParams, is_session_closed: Event) -> None:
pass
@abstractmethod
def stop(self) -> None:
pass
@abstractmethod
def is_running(self) -> bool:
pass
@abstractmethod
def target_is_readable(self, p... | 14 | 3 | 2 | 0 | 1 | 1 | 1 | 0.31 | 1 | 3 | 0 | 2 | 7 | 0 | 7 | 27 | 28 | 7 | 16 | 14 | 6 | 5 | 14 | 8 | 6 | 2 | 4 | 0 | 8 |
21,724 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/utils.py | dagster._core.pipes.utils.PipesTempFileContextInjector | import os
from dagster._core.pipes.client import PipesContextInjector, PipesLaunchedData, PipesMessageReader
from dagster._annotations import public
from collections.abc import Iterator, Sequence
from dagster_pipes import PIPES_PROTOCOL_VERSION_FIELD, PipesContextData, PipesDefaultContextLoader, PipesDefaultMessageWrit... | @public
class PipesTempFileContextInjector(PipesContextInjector):
'''Context injector that injects context data into the external process by writing it to an
automatically-generated temporary file.
'''
@contextmanager
def inject_context(self, context: 'PipesContextData') -> Iterator[PipesParams]:
... | 5 | 2 | 9 | 1 | 4 | 4 | 1 | 1.1 | 1 | 4 | 1 | 0 | 2 | 0 | 2 | 24 | 25 | 4 | 10 | 6 | 6 | 11 | 7 | 3 | 4 | 1 | 5 | 2 | 2 |
21,725 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/utils.py | dagster._core.pipes.utils.PipesTempFileMessageReader | from dagster._core.pipes.client import PipesContextInjector, PipesLaunchedData, PipesMessageReader
import os
import tempfile
from collections.abc import Iterator, Sequence
from dagster import OpExecutionContext, _check as check
from dagster._annotations import public
from dagster_pipes import PIPES_PROTOCOL_VERSION_FIE... | @public
class PipesTempFileMessageReader(PipesMessageReader):
'''Message reader that reads messages by tailing an automatically-generated temporary file.'''
def __init__(self, include_stdio_in_messages: bool=False):
pass
@contextmanager
def read_messages(self, handler: 'PipesMessageHandler') ->... | 6 | 2 | 9 | 1 | 5 | 3 | 1 | 0.5 | 1 | 5 | 1 | 0 | 3 | 1 | 3 | 27 | 32 | 5 | 18 | 11 | 10 | 9 | 9 | 5 | 5 | 1 | 5 | 2 | 3 |
21,726 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/pipes/utils.py | dagster._core.pipes.utils.PipesThreadedMessageReader | from dagster_pipes import PIPES_PROTOCOL_VERSION_FIELD, PipesContextData, PipesDefaultContextLoader, PipesDefaultMessageWriter, PipesExtras, PipesOpenedData, PipesParams
import json
from threading import Event, Thread
from dagster._core.pipes.context import PipesMessageHandler, PipesSession, build_external_execution_co... |
class PipesThreadedMessageReader(PipesMessageReader):
'''A base class for message readers that read messages and logs in background threads.
Args:
interval (float): The interval in seconds at which to poll for messages.
log_readers (Optional[Sequence[PipesLogReader]]): A set of log readers to u... | 17 | 5 | 21 | 2 | 15 | 5 | 4 | 0.33 | 1 | 17 | 4 | 3 | 11 | 0 | 11 | 35 | 258 | 33 | 172 | 55 | 136 | 56 | 108 | 30 | 96 | 15 | 5 | 8 | 42 |
21,727 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/code_location.py | dagster._core.remote_representation.code_location.CodeLocation | from dagster._utils.merger import merge_dicts
from dagster._core.remote_representation.external_data import PartitionNamesSnap, RemoteJobSubsetResult, RepositorySnap, ScheduleExecutionErrorSnap, SensorExecutionErrorSnap, partition_set_snap_name_for_job_name
from dagster._core.definitions.selector import JobSubsetSelect... |
class CodeLocation(AbstractContextManager):
'''A CodeLocation represents a target containing user code which has a set of Dagster
definition objects. A given location will contain some number of uniquely named
RepositoryDefinitions, which therein contains job, op, and other definitions.
Dagster tools a... | 65 | 5 | 7 | 0 | 6 | 1 | 1 | 0.16 | 1 | 16 | 8 | 2 | 30 | 0 | 30 | 53 | 290 | 42 | 213 | 121 | 96 | 35 | 86 | 41 | 54 | 5 | 5 | 2 | 39 |
21,728 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/code_location.py | dagster._core.remote_representation.code_location.GrpcServerCodeLocation | import threading
from dagster._core.remote_representation.handle import JobHandle, RepositoryHandle
from dagster._check import checked
from dagster._serdes import deserialize_value
from typing import TYPE_CHECKING, AbstractSet, Any, Optional, Union, cast
from collections.abc import Mapping, Sequence
from functools impo... |
class GrpcServerCodeLocation(CodeLocation):
def __init__(self, origin: CodeLocationOrigin, instance: DagsterInstance, host: Optional[str]=None, port: Optional[int]=None, socket: Optional[str]=None, heartbeat: Optional[bool]=False, watch_server: Optional[bool]=True, grpc_server_registry: Optional[GrpcServerRegistr... | 45 | 0 | 11 | 1 | 10 | 0 | 1 | 0 | 1 | 23 | 10 | 0 | 29 | 22 | 29 | 82 | 366 | 54 | 312 | 130 | 212 | 1 | 140 | 62 | 108 | 5 | 6 | 2 | 38 |
21,729 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/code_location.py | dagster._core.remote_representation.code_location.InProcessCodeLocation | from dagster._core.execution.plan.state import KnownExecutionState
from dagster._core.definitions.repository_definition import RepositoryDefinition
from dagster._core.remote_representation.handle import JobHandle, RepositoryHandle
from dagster._core.definitions.selector import JobSubsetSelector
from dagster._grpc.impl ... |
class InProcessCodeLocation(CodeLocation):
def __init__(self, origin: InProcessCodeLocationOrigin, instance: DagsterInstance):
pass
@property
def is_reload_supported(self) -> bool:
pass
@property
def origin(self) -> InProcessCodeLocationOrigin:
pass
@property
def ex... | 34 | 0 | 10 | 1 | 9 | 0 | 1 | 0 | 1 | 20 | 12 | 0 | 24 | 5 | 24 | 77 | 261 | 36 | 225 | 91 | 145 | 0 | 88 | 37 | 61 | 4 | 6 | 1 | 30 |
21,730 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external.py | dagster._core.remote_representation.external.RemoteExecutionPlan | import dagster._check as check
from dagster._core.snap import ExecutionPlanSnapshot
from dagster._core.execution.plan.handle import ResolvedFromDynamicStepHandle, StepHandle
from typing import TYPE_CHECKING, AbstractSet, Callable, Optional, Union
from dagster._core.utils import toposort
from collections.abc import Iter... |
class RemoteExecutionPlan(LoadableBy[JobSubsetSelector, 'BaseWorkspaceRequestContext']):
'''RemoteExecutionPlan is a object that represents an execution plan that
was compiled in another process or persisted in an instance.
'''
def __init__(self, execution_plan_snapshot: ExecutionPlanSnapshot):
... | 15 | 1 | 7 | 1 | 7 | 0 | 2 | 0.11 | 0 | 9 | 3 | 0 | 9 | 6 | 9 | 9 | 85 | 17 | 61 | 23 | 50 | 7 | 42 | 21 | 32 | 5 | 0 | 3 | 17 |
21,731 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external.py | dagster._core.remote_representation.external.RemoteJob | from dagster._core.remote_representation.job_index import JobIndex
from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey
from dagster._core.storage.tags import EXTERNAL_JOB_SOURCE_TAG_KEY
from dagster._core.remote_origin import RemoteInstigatorOrigin, RemoteJobOrigin, RemotePartitionSetOrigi... |
class RemoteJob(RepresentedJob, LoadableBy[JobSubsetSelector, 'BaseWorkspaceRequestContext']):
'''RemoteJob is a object that represents a loaded job definition that
is resident in another process or container. Host processes such as dagster-webserver use
objects such as these to interact with user-defined ... | 56 | 3 | 5 | 0 | 4 | 0 | 1 | 0.05 | 1 | 14 | 9 | 1 | 28 | 9 | 28 | 67 | 183 | 37 | 139 | 67 | 83 | 7 | 88 | 40 | 59 | 4 | 5 | 3 | 40 |
21,732 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external.py | dagster._core.remote_representation.external.RemotePartitionSet | from dagster._core.definitions.partitions.definition import PartitionsDefinition
from dagster._core.remote_origin import RemoteInstigatorOrigin, RemoteJobOrigin, RemotePartitionSetOrigin, RemoteRepositoryOrigin
from dagster._core.instance import DagsterInstance
import dagster._check as check
from typing import TYPE_CHE... |
class RemotePartitionSet:
def __init__(self, partition_set_snap: PartitionSetSnap, handle: RepositoryHandle):
pass
@property
def name(self) -> str:
pass
@property
def op_selection(self) -> Optional[Sequence[str]]:
pass
@property
def mode(self) -> Optional[str]:
... | 20 | 0 | 4 | 0 | 3 | 0 | 1 | 0.12 | 0 | 8 | 5 | 0 | 13 | 2 | 13 | 13 | 69 | 12 | 51 | 24 | 31 | 6 | 34 | 18 | 20 | 2 | 0 | 1 | 15 |
21,733 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external.py | dagster._core.remote_representation.external.RemoteRepository | from dagster_shared.error import DagsterError
from dagster._core.definitions.selector import InstigatorSelector, JobSubsetSelector, RepositorySelector, ScheduleSelector, SensorSelector
from dagster._core.definitions.sensor_definition import DEFAULT_SENSOR_DAEMON_INTERVAL, DefaultSensorStatus, SensorType
from dagster._u... |
class RemoteRepository:
'''RemoteRepository is a object that represents a loaded repository definition that
is resident in another process or container. Host processes such as dagster-webserver use
objects such as these to interact with user-defined artifacts.
'''
def __init__(self, repository... | 65 | 3 | 7 | 1 | 6 | 0 | 2 | 0.05 | 0 | 28 | 19 | 0 | 45 | 10 | 45 | 45 | 380 | 68 | 298 | 129 | 204 | 14 | 185 | 86 | 138 | 8 | 0 | 6 | 80 |
21,734 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external.py | dagster._core.remote_representation.external.RemoteResource | from typing import TYPE_CHECKING, AbstractSet, Callable, Optional, Union
from dagster._core.remote_representation.external_data import DEFAULT_MODE_NAME, AssetCheckNodeSnap, AssetNodeSnap, EnvVarConsumer, JobDataSnap, JobRefSnap, NestedResource, PartitionSetSnap, PresetSnap, RepositorySnap, ResourceJobUsageEntry, Resou... |
class RemoteResource:
'''Represents a top-level resource in a repository, e.g. one passed through the Definitions API.'''
def __init__(self, resource_snap: ResourceSnap, handle: RepositoryHandle):
pass
@property
def name(self) -> str:
pass
@property
def description(self) -> Opt... | 30 | 1 | 2 | 0 | 2 | 0 | 1 | 0.02 | 0 | 11 | 7 | 0 | 15 | 2 | 15 | 15 | 65 | 15 | 49 | 32 | 19 | 1 | 32 | 18 | 16 | 1 | 0 | 0 | 15 |
21,735 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external.py | dagster._core.remote_representation.external.RemoteSchedule | from dagster._core.remote_origin import RemoteInstigatorOrigin, RemoteJobOrigin, RemotePartitionSetOrigin, RemoteRepositoryOrigin
from dagster._utils.schedules import schedule_execution_time_iterator
from dagster._serdes import create_snapshot_id
from dagster._core.definitions.run_request import InstigatorType
from dag... |
class RemoteSchedule:
def __init__(self, schedule_snap: ScheduleSnap, handle: RepositoryHandle):
pass
@property
def name(self) -> str:
pass
@property
def cron_schedule(self) -> Union[str, Sequence[str]]:
pass
@property
def execution_timezone(self) -> Optional[str]:
... | 41 | 0 | 4 | 0 | 4 | 0 | 1 | 0.04 | 0 | 19 | 12 | 1 | 23 | 2 | 23 | 23 | 140 | 25 | 111 | 52 | 61 | 4 | 55 | 27 | 30 | 5 | 0 | 2 | 27 |
21,736 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external.py | dagster._core.remote_representation.external.RemoteSensor | from dagster._serdes import create_snapshot_id
from dagster._core.definitions.run_request import InstigatorType
from dagster._core.remote_origin import RemoteInstigatorOrigin, RemoteJobOrigin, RemotePartitionSetOrigin, RemoteRepositoryOrigin
from typing import TYPE_CHECKING, AbstractSet, Callable, Optional, Union
impor... |
class RemoteSensor:
def __init__(self, sensor_snap: SensorSnap, handle: RepositoryHandle):
pass
@property
def name(self) -> str:
pass
@property
def handle(self) -> InstigatorHandle:
pass
@property
def job_name(self) -> Optional[str]:
pass
@property
d... | 41 | 0 | 5 | 0 | 5 | 0 | 1 | 0.02 | 0 | 20 | 15 | 0 | 24 | 2 | 24 | 24 | 154 | 25 | 126 | 53 | 78 | 3 | 64 | 31 | 38 | 5 | 0 | 2 | 34 |
21,737 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.AssetCheckNodeSnap | from typing import Any, Final, NamedTuple, Optional, Union, cast
from dagster._core.definitions.events import AssetKey
from dagster._core.definitions.declarative_automation.serialized_objects import AutomationConditionSnapshot
from dagster._serdes import whitelist_for_serdes
from dagster._core.definitions.declarative_a... | @whitelist_for_serdes(storage_name='ExternalAssetCheck', storage_field_names={'execution_set_identifier': 'atomic_execution_unit_id'})
@record_custom
class AssetCheckNodeSnap(IHaveNew):
'''Serializable data associated with an asset check.'''
def __new__(cls, name: str, asset_key: AssetKey, description: Optiona... | 6 | 1 | 13 | 0 | 13 | 0 | 1 | 0.03 | 1 | 4 | 0 | 0 | 2 | 0 | 2 | 4 | 41 | 3 | 37 | 15 | 22 | 1 | 14 | 3 | 11 | 1 | 1 | 0 | 2 |
21,738 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.AssetChildEdgeSnap | from dagster._serdes import whitelist_for_serdes
from dagster._record import IHaveNew, record, record_custom
from dagster._core.definitions.events import AssetKey
from typing import Any, Final, NamedTuple, Optional, Union, cast
@whitelist_for_serdes(storage_name='ExternalAssetDependedBy', storage_field_names={'child_a... | @whitelist_for_serdes(storage_name='ExternalAssetDependedBy', storage_field_names={'child_asset_key': 'downstream_asset_key'})
@record
class AssetChildEdgeSnap:
'''A definition of a directed edge in the logical asset graph.
An downstream asset that's depended by, and the corresponding input name in the upstream... | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 4 | 3 | 3 | 4 | 4 | 3 | 3 | 0 | 0 | 0 | 0 |
21,739 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.AssetNodeSnap | from collections.abc import Iterable, Mapping, Sequence
from dagster._core.definitions.backfill_policy import BackfillPolicy
from dagster._core.definitions.metadata import MetadataFieldSerializer, MetadataMapping, MetadataValue, TextMetadataValue, normalize_metadata
from dagster._record import IHaveNew, record, record_... | @whitelist_for_serdes(storage_name='ExternalAssetNode', storage_field_names={'child_edges': 'depended_by', 'parent_edges': 'dependencies', 'metadata': 'metadata_entries', 'execution_set_identifier': 'atomic_execution_unit_id', 'description': 'op_description', 'partitions': 'partitions_def_data', 'legacy_freshness_polic... | 13 | 1 | 24 | 1 | 22 | 1 | 3 | 0.09 | 1 | 15 | 5 | 0 | 5 | 0 | 5 | 7 | 166 | 12 | 141 | 43 | 101 | 13 | 59 | 9 | 53 | 8 | 1 | 2 | 13 |
21,740 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.AssetParentEdgeSnap | from typing import Any, Final, NamedTuple, Optional, Union, cast
from dagster._core.definitions.events import AssetKey
from dagster._serdes import whitelist_for_serdes
from dagster._core.definitions.partitions.mapping import PartitionMapping
from dagster._record import IHaveNew, record, record_custom
@whitelist_for_se... | @whitelist_for_serdes(storage_name='ExternalAssetDependency', storage_field_names={'parent_asset_key': 'upstream_asset_key'})
@record
class AssetParentEdgeSnap:
'''A definition of a directed edge in the logical asset graph.
An upstream asset that's depended on, and the corresponding input name in the downstream... | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 5 | 4 | 4 | 4 | 5 | 4 | 4 | 0 | 0 | 0 | 0 |
21,741 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.BackcompatTeamOwnerFieldDeserializer | from dagster_shared.serdes.serdes import FieldSerializer, get_prefix_for_a_serialized, is_whitelisted_for_serdes_object
from dagster._core.utils import is_valid_email
from typing import Any, Final, NamedTuple, Optional, Union, cast
class BackcompatTeamOwnerFieldDeserializer(FieldSerializer):
"""Up through Dagster ... |
class BackcompatTeamOwnerFieldDeserializer(FieldSerializer):
'''Up through Dagster 1.7.7, asset owners provided as "team:foo" would be serialized as "foo"
going forward, they're serialized as "team:foo".
'''
def unpack(self, __unpacked_value, whitelist_map, context):
pass
def pack(self, _... | 3 | 1 | 6 | 0 | 6 | 0 | 2 | 0.25 | 1 | 2 | 0 | 0 | 2 | 0 | 2 | 25 | 17 | 2 | 12 | 3 | 9 | 3 | 5 | 3 | 2 | 3 | 6 | 0 | 4 |
21,742 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.EnvVarConsumer | from dagster._serdes import whitelist_for_serdes
from typing import Any, Final, NamedTuple, Optional, Union, cast
@whitelist_for_serdes
class EnvVarConsumer(NamedTuple):
type: EnvVarConsumerType
name: str | @whitelist_for_serdes
class EnvVarConsumer(NamedTuple):
pass | 2 | 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,743 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.EnvVarConsumerType | from dagster._serdes import whitelist_for_serdes
from enum import Enum
@whitelist_for_serdes
class EnvVarConsumerType(Enum):
RESOURCE = 'RESOURCE' | @whitelist_for_serdes
class EnvVarConsumerType(Enum):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
21,744 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.ExecutionParamsErrorSnap | from dagster._serdes import whitelist_for_serdes
from dagster._utils.error import SerializableErrorInfo
from dagster._record import IHaveNew, record, record_custom
from typing import Any, Final, NamedTuple, Optional, Union, cast
@whitelist_for_serdes(storage_name='ExternalExecutionParamsErrorData')
@record
class Execu... | @whitelist_for_serdes(storage_name='ExternalExecutionParamsErrorData')
@record
class ExecutionParamsErrorSnap:
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
21,745 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.ExecutionParamsSnap | from dagster._serdes import whitelist_for_serdes
from collections.abc import Iterable, Mapping, Sequence
from dagster._record import IHaveNew, record, record_custom
from typing import Any, Final, NamedTuple, Optional, Union, cast
@whitelist_for_serdes(storage_name='ExternalExecutionParamsData')
@record_custom
class Ex... | @whitelist_for_serdes(storage_name='ExternalExecutionParamsData')
@record_custom
class ExecutionParamsSnap(IHaveNew):
def __new__(cls, run_config: Optional[Mapping[str, object]]=None, tags: Optional[Mapping[str, str]]=None):
pass | 4 | 0 | 10 | 0 | 10 | 0 | 1 | 0 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 3 | 14 | 1 | 13 | 6 | 7 | 0 | 5 | 2 | 3 | 1 | 1 | 0 | 1 |
21,746 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.JobDataSnap | from dagster._core.snap import JobSnap
from typing import Any, Final, NamedTuple, Optional, Union, cast
from dagster._core.definitions import AssetSelection, JobDefinition, RepositoryDefinition, ScheduleDefinition
from dagster._serdes import whitelist_for_serdes
from collections.abc import Iterable, Mapping, Sequence
f... | @whitelist_for_serdes(storage_name='ExternalPipelineData', storage_field_names={'job': _JOB_SNAP_STORAGE_FIELD, 'parent_job': 'parent_pipeline_snapshot'}, old_fields={'is_job': True})
@record
class JobDataSnap:
@classmethod
def from_job_def(cls, job_def: JobDefinition, include_parent_snapshot: bool) -> Self:
... | 5 | 0 | 7 | 0 | 7 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 14 | 1 | 13 | 3 | 10 | 0 | 7 | 2 | 5 | 2 | 0 | 0 | 2 |
21,747 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.JobRefSnap | from typing import Any, Final, NamedTuple, Optional, Union, cast
from dagster._core.definitions import AssetSelection, JobDefinition, RepositoryDefinition, ScheduleDefinition
from dagster._serdes import whitelist_for_serdes
from dagster import _check as check
from collections.abc import Iterable, Mapping, Sequence
from... | @whitelist_for_serdes(storage_name='ExternalJobRef', old_fields={'is_legacy_pipeline': False})
@record
class JobRefSnap:
@classmethod
def from_job_def(cls, job_def: JobDefinition) -> Self:
pass
def get_preview_tags(self) -> Mapping[str, str]:
pass | 6 | 0 | 9 | 1 | 8 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 16 | 2 | 14 | 3 | 11 | 0 | 8 | 2 | 6 | 1 | 0 | 0 | 1 |
21,748 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.NestedResource | from dagster._serdes import whitelist_for_serdes
from typing import Any, Final, NamedTuple, Optional, Union, cast
@whitelist_for_serdes
class NestedResource(NamedTuple):
type: NestedResourceType
name: str | @whitelist_for_serdes
class NestedResource(NamedTuple):
pass | 2 | 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,749 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.NestedResourceType | from dagster._serdes import whitelist_for_serdes
from enum import Enum
@whitelist_for_serdes
class NestedResourceType(Enum):
ANONYMOUS = 'ANONYMOUS'
TOP_LEVEL = 'TOP_LEVEL' | @whitelist_for_serdes
class NestedResourceType(Enum):
pass | 2 | 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,750 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.NodeHandleResourceUse | from typing import Any, Final, NamedTuple, Optional, Union, cast
from dagster._core.definitions.dependency import GraphNode, Node, NodeHandle, NodeOutputHandle, OpNode
class NodeHandleResourceUse(NamedTuple):
resource_key: str
node_handle: NodeHandle |
class NodeHandleResourceUse(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,751 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.PartitionConfigSnap | from typing import Any, Final, NamedTuple, Optional, Union, cast
from dagster._serdes import whitelist_for_serdes
from collections.abc import Iterable, Mapping, Sequence
from dagster._record import IHaveNew, record, record_custom
@whitelist_for_serdes(storage_name='ExternalPartitionConfigData')
@record_custom
class Pa... | @whitelist_for_serdes(storage_name='ExternalPartitionConfigData')
@record_custom
class PartitionConfigSnap(IHaveNew):
def __new__(cls, name: str, run_config: Optional[Mapping[str, object]]=None):
pass | 4 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 3 | 10 | 1 | 9 | 2 | 7 | 0 | 5 | 2 | 3 | 1 | 1 | 0 | 1 |
21,752 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.PartitionExecutionErrorSnap | from typing import Any, Final, NamedTuple, Optional, Union, cast
from dagster._serdes import whitelist_for_serdes
from dagster._utils.error import SerializableErrorInfo
from dagster._record import IHaveNew, record, record_custom
@whitelist_for_serdes(storage_name='ExternalPartitionExecutionErrorData')
@record
class Pa... | @whitelist_for_serdes(storage_name='ExternalPartitionExecutionErrorData')
@record
class PartitionExecutionErrorSnap:
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
21,753 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.PartitionExecutionParamSnap | from dagster._serdes import whitelist_for_serdes
from collections.abc import Iterable, Mapping, Sequence
from dagster._record import IHaveNew, record, record_custom
@whitelist_for_serdes(storage_name='ExternalPartitionExecutionParamData')
@record
class PartitionExecutionParamSnap:
name: str
tags: Mapping[str, ... | @whitelist_for_serdes(storage_name='ExternalPartitionExecutionParamData')
@record
class PartitionExecutionParamSnap:
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,754 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.PartitionNamesSnap | from typing import Any, Final, NamedTuple, Optional, Union, cast
from dagster._serdes import whitelist_for_serdes
from collections.abc import Iterable, Mapping, Sequence
from dagster._record import IHaveNew, record, record_custom
@whitelist_for_serdes(storage_name='ExternalPartitionNamesData')
@record_custom
class Par... | @whitelist_for_serdes(storage_name='ExternalPartitionNamesData')
@record_custom
class PartitionNamesSnap(IHaveNew):
def __new__(cls, partition_names: Optional[Sequence[str]]=None):
pass | 4 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 3 | 8 | 1 | 7 | 2 | 5 | 0 | 4 | 2 | 2 | 1 | 1 | 0 | 1 |
21,755 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.PartitionSetExecutionParamSnap | from dagster._serdes import whitelist_for_serdes
from collections.abc import Iterable, Mapping, Sequence
from dagster._record import IHaveNew, record, record_custom
@whitelist_for_serdes(storage_name='ExternalPartitionSetExecutionParamData')
@record
class PartitionSetExecutionParamSnap:
partition_data: Sequence[Pa... | @whitelist_for_serdes(storage_name='ExternalPartitionSetExecutionParamData')
@record
class PartitionSetExecutionParamSnap:
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
21,756 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.PartitionSetSnap | from dagster._core.definitions.partitions.definition import DynamicPartitionsDefinition, MultiPartitionsDefinition, StaticPartitionsDefinition, TimeWindowPartitionsDefinition
from typing import Any, Final, NamedTuple, Optional, Union, cast
from dagster._core.definitions.partitions.snap import DynamicPartitionsSnap, Mul... | @whitelist_for_serdes(storage_name='ExternalPartitionSetData', storage_field_names={'job_name': 'pipeline_name', 'op_selection': 'solid_selection', 'partitions': 'external_partitions_data'})
@record
class PartitionSetSnap:
@classmethod
def from_job_def(cls, job_def: JobDefinition) -> Self:
pass | 5 | 0 | 27 | 2 | 25 | 0 | 5 | 0 | 0 | 7 | 7 | 0 | 0 | 0 | 1 | 1 | 36 | 3 | 33 | 7 | 30 | 0 | 18 | 6 | 16 | 5 | 0 | 1 | 5 |
21,757 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.PartitionTagsSnap | from dagster._serdes import whitelist_for_serdes
from collections.abc import Iterable, Mapping, Sequence
from dagster._record import IHaveNew, record, record_custom
from typing import Any, Final, NamedTuple, Optional, Union, cast
@whitelist_for_serdes(storage_name='ExternalPartitionTagsData')
@record_custom
class Part... | @whitelist_for_serdes(storage_name='ExternalPartitionTagsData')
@record_custom
class PartitionTagsSnap(IHaveNew):
def __new__(cls, name: str, tags: Optional[Mapping[str, str]]=None):
pass | 4 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 3 | 10 | 1 | 9 | 2 | 7 | 0 | 5 | 2 | 3 | 1 | 1 | 0 | 1 |
21,758 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.PresetSnap | from dagster._serdes import whitelist_for_serdes
from collections.abc import Iterable, Mapping, Sequence
from dagster._record import IHaveNew, record, record_custom
from typing import Any, Final, NamedTuple, Optional, Union, cast
@whitelist_for_serdes(storage_name='ExternalPresetData', storage_field_names={'op_selecti... | @whitelist_for_serdes(storage_name='ExternalPresetData', storage_field_names={'op_selection': 'solid_selection'})
@record_custom
class PresetSnap(IHaveNew):
def __new__(cls, name: str, run_config: Optional[Mapping[str, object]], op_selection: Optional[Sequence[str]], mode: str, tags: Optional[Mapping[str, str]]):
... | 4 | 0 | 16 | 0 | 16 | 0 | 1 | 0 | 1 | 5 | 0 | 0 | 1 | 0 | 1 | 3 | 23 | 1 | 22 | 9 | 13 | 0 | 8 | 2 | 6 | 1 | 1 | 0 | 1 |
21,759 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.RemoteJobSubsetResult | from dagster._core.origin import RepositoryPythonOrigin
from typing import Any, Final, NamedTuple, Optional, Union, cast
from dagster._utils.error import SerializableErrorInfo
from dagster._serdes import whitelist_for_serdes
from dagster._record import IHaveNew, record, record_custom
@whitelist_for_serdes(storage_name... | @whitelist_for_serdes(storage_name='ExternalPipelineSubsetResult', storage_field_names={'job_data_snap': 'external_pipeline_data'})
@record
class RemoteJobSubsetResult:
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 4 | 4 | 0 | 5 | 4 | 4 | 0 | 0 | 0 | 0 |
21,760 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.RepositoryErrorSnap | from dagster._serdes import whitelist_for_serdes
from dagster._utils.error import SerializableErrorInfo
from dagster._record import IHaveNew, record, record_custom
from typing import Any, Final, NamedTuple, Optional, Union, cast
@whitelist_for_serdes(storage_name='ExternalRepositoryErrorData')
@record
class Repository... | @whitelist_for_serdes(storage_name='ExternalRepositoryErrorData')
@record
class RepositoryErrorSnap:
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
21,761 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.RepositorySnap | from dagster._core.snap import JobSnap
from typing import Any, Final, NamedTuple, Optional, Union, cast
from dagster._core.definitions import AssetSelection, JobDefinition, RepositoryDefinition, ScheduleDefinition
from dagster._core.definitions.events import AssetKey
from dagster_shared.serdes.objects.models.defs_state... | @whitelist_for_serdes(storage_name='ExternalRepositoryData', storage_field_names={'schedules': 'external_schedule_datas', 'partition_sets': 'external_partition_set_datas', 'sensors': 'external_sensor_datas', 'asset_nodes': 'external_asset_graph_data', 'resources': 'external_resource_data', 'asset_check_nodes': 'externa... | 15 | 0 | 19 | 2 | 16 | 0 | 4 | 0.02 | 1 | 17 | 9 | 0 | 10 | 0 | 11 | 13 | 228 | 30 | 194 | 52 | 164 | 4 | 97 | 34 | 85 | 14 | 1 | 3 | 40 |
21,762 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.ResourceConfigEnvVarSnap | from dagster._serdes import whitelist_for_serdes
from dagster._record import IHaveNew, record, record_custom
@whitelist_for_serdes(storage_name='ExternalResourceConfigEnvVar')
@record
class ResourceConfigEnvVarSnap:
name: str | @whitelist_for_serdes(storage_name='ExternalResourceConfigEnvVar')
@record
class ResourceConfigEnvVarSnap:
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
21,763 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.ResourceJobUsageEntry | from dagster._serdes import whitelist_for_serdes
from dagster._core.definitions.dependency import GraphNode, Node, NodeHandle, NodeOutputHandle, OpNode
from dagster._record import IHaveNew, record, record_custom
@whitelist_for_serdes
@record
class ResourceJobUsageEntry:
"""Stores information about where a resource... | @whitelist_for_serdes
@record
class ResourceJobUsageEntry:
'''Stores information about where a resource is used in a job.'''
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,764 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.ResourceSnap | from dagster._serdes import whitelist_for_serdes
from collections.abc import Iterable, Mapping, Sequence
from dagster._config.snap import ConfigFieldSnap, ConfigSchemaSnapshot, snap_from_config_type
from dagster._core.snap.mode import ResourceDefSnap, build_resource_def_snap
from dagster._record import IHaveNew, record... | @whitelist_for_serdes(storage_name='ExternalResourceData')
@record_custom
class ResourceSnap(IHaveNew):
'''Serializable data associated with a top-level resource in a Repository, e.g. one bound using the Definitions API.
Includes information about the resource definition and config schema, user-passed values, e... | 6 | 1 | 77 | 4 | 68 | 6 | 4 | 0.1 | 1 | 17 | 8 | 0 | 1 | 0 | 2 | 4 | 176 | 12 | 152 | 40 | 122 | 15 | 35 | 13 | 32 | 7 | 1 | 1 | 8 |
21,765 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.ScheduleExecutionErrorSnap | from typing import Any, Final, NamedTuple, Optional, Union, cast
from dagster._serdes import whitelist_for_serdes
from dagster._utils.error import SerializableErrorInfo
from dagster._record import IHaveNew, record, record_custom
@whitelist_for_serdes(storage_name='ExternalScheduleExecutionErrorData')
@record
class Sch... | @whitelist_for_serdes(storage_name='ExternalScheduleExecutionErrorData')
@record
class ScheduleExecutionErrorSnap:
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
21,766 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.ScheduleSnap | from typing_extensions import Self, TypeAlias
from dagster._core.definitions.schedule_definition import DefaultScheduleStatus
from typing import Any, Final, NamedTuple, Optional, Union, cast
from dagster_shared.serdes.serdes import FieldSerializer, get_prefix_for_a_serialized, is_whitelisted_for_serdes_object
from dags... | @whitelist_for_serdes(storage_name='ExternalScheduleData', storage_field_names={'job_name': 'pipeline_name', 'op_selection': 'solid_selection'}, skip_when_empty_fields={'default_status'})
@record_custom
class ScheduleSnap(IHaveNew):
def __new__(cls, name: str, cron_schedule: Union[str, Sequence[str]], job_name: st... | 6 | 0 | 37 | 1 | 35 | 1 | 3 | 0.01 | 1 | 6 | 2 | 0 | 1 | 0 | 2 | 4 | 90 | 4 | 85 | 23 | 64 | 1 | 24 | 5 | 21 | 3 | 1 | 1 | 5 |
21,767 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.SensorExecutionErrorSnap | from typing import Any, Final, NamedTuple, Optional, Union, cast
from dagster._serdes import whitelist_for_serdes
from dagster._utils.error import SerializableErrorInfo
from dagster._record import IHaveNew, record, record_custom
@whitelist_for_serdes(storage_name='ExternalSensorExecutionErrorData')
@record
class Senso... | @whitelist_for_serdes(storage_name='ExternalSensorExecutionErrorData')
@record
class SensorExecutionErrorSnap:
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
21,768 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.SensorSnap | from dagster._core.definitions.automation_condition_sensor_definition import AutomationConditionSensorDefinition
from typing import Any, Final, NamedTuple, Optional, Union, cast
from dagster_shared.serdes.serdes import FieldSerializer, get_prefix_for_a_serialized, is_whitelisted_for_serdes_object
from dagster._core.def... | @whitelist_for_serdes(storage_name='ExternalSensorData', storage_field_names={'job_name': 'pipeline_name', 'op_selection': 'solid_selection'}, skip_when_empty_fields={'default_status', 'sensor_type'})
@record_custom
class SensorSnap(IHaveNew):
def __new__(cls, name: str, job_name: Optional[str]=None, op_selection:... | 6 | 0 | 60 | 4 | 55 | 3 | 6 | 0.05 | 1 | 9 | 4 | 0 | 1 | 0 | 2 | 4 | 136 | 9 | 124 | 24 | 105 | 6 | 34 | 8 | 31 | 8 | 1 | 2 | 12 |
21,769 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/external_data.py | dagster._core.remote_representation.external_data.TargetSnap | from dagster._serdes import whitelist_for_serdes
from collections.abc import Iterable, Mapping, Sequence
from dagster._record import IHaveNew, record, record_custom
from typing import Any, Final, NamedTuple, Optional, Union, cast
@whitelist_for_serdes(storage_name='ExternalTargetData', storage_field_names={'job_name':... | @whitelist_for_serdes(storage_name='ExternalTargetData', storage_field_names={'job_name': 'pipeline_name', 'op_selection': 'solid_selection'})
@record
class TargetSnap:
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,770 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/feature_flags.py | dagster._core.remote_representation.feature_flags.CodeLocationFeatureFlags | from enum import Enum
class CodeLocationFeatureFlags(Enum):
SHOW_SINGLE_RUN_BACKFILL_TOGGLE = 'SHOW_SINGLE_RUN_BACKFILL_TOGGLE' |
class CodeLocationFeatureFlags(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
21,771 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/grpc_server_registry.py | dagster._core.remote_representation.grpc_server_registry.ErrorRegistryEntry | from dagster._core.types.loadable_target_origin import LoadableTargetOrigin
from dagster._utils.error import SerializableErrorInfo, serializable_error_info_from_exc_info
from typing import TYPE_CHECKING, Any, NamedTuple, Optional, Union, cast
class ErrorRegistryEntry(NamedTuple):
loadable_target_origin: LoadableTa... |
class ErrorRegistryEntry(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,772 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/grpc_server_registry.py | dagster._core.remote_representation.grpc_server_registry.GrpcServerEndpoint | import dagster._check as check
from typing import TYPE_CHECKING, Any, NamedTuple, Optional, Union, cast
class GrpcServerEndpoint(NamedTuple('_GrpcServerEndpoint', [('host', str), ('port', Optional[int]), ('socket', Optional[str])])):
def __new__(cls, host: str, port: Optional[int], socket: Optional[str]):
... |
class GrpcServerEndpoint(NamedTuple('_GrpcServerEndpoint', [('host', str), ('port', Optional[int]), ('socket', Optional[str])])):
def __new__(cls, host: str, port: Optional[int], socket: Optional[str]):
pass
def create_client(self) -> 'DagsterGrpcClient':
pass | 3 | 0 | 6 | 1 | 6 | 0 | 1 | 0 | 1 | 4 | 1 | 0 | 2 | 2 | 2 | 2 | 24 | 2 | 22 | 15 | 8 | 0 | 6 | 4 | 2 | 1 | 1 | 0 | 2 |
21,773 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/grpc_server_registry.py | dagster._core.remote_representation.grpc_server_registry.GrpcServerRegistry | import dagster._check as check
from dagster._core.types.loadable_target_origin import LoadableTargetOrigin
from typing import TYPE_CHECKING, Any, NamedTuple, Optional, Union, cast
from dagster._core.remote_origin import CodeLocationOrigin, ManagedGrpcPythonEnvCodeLocationOrigin
from dagster._utils.error import Serializ... |
class GrpcServerRegistry(AbstractContextManager):
def __init__(self, instance_ref: Optional[InstanceRef], server_command: 'GrpcServerCommand', heartbeat_ttl: int, startup_timeout: int, wait_for_processes_on_shutdown: bool, log_level: str='INFO', inject_env_vars_from_instance: bool=True, container_image: Optional[... | 17 | 0 | 16 | 2 | 13 | 1 | 2 | 0.1 | 1 | 19 | 8 | 1 | 13 | 16 | 13 | 36 | 221 | 33 | 171 | 65 | 134 | 17 | 102 | 42 | 88 | 6 | 5 | 4 | 31 |
21,774 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/grpc_server_registry.py | dagster._core.remote_representation.grpc_server_registry.ServerRegistryEntry | from dagster._core.types.loadable_target_origin import LoadableTargetOrigin
from typing import TYPE_CHECKING, Any, NamedTuple, Optional, Union, cast
class ServerRegistryEntry(NamedTuple):
loadable_target_origin: LoadableTargetOrigin
creation_timestamp: float
process: 'GrpcServerProcess' |
class ServerRegistryEntry(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 1 | 4 | 0 | 5 | 1 | 4 | 0 | 1 | 0 | 0 |
21,775 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/grpc_server_state_subscriber.py | dagster._core.remote_representation.grpc_server_state_subscriber.LocationStateChangeEvent | import dagster._check as check
from typing import Callable, NamedTuple, Optional
class LocationStateChangeEvent(NamedTuple('_LocationStateChangeEvent', [('event_type', LocationStateChangeEventType), ('location_name', str), ('message', str), ('server_id', Optional[str])])):
def __new__(cls, event_type: LocationSta... |
class LocationStateChangeEvent(NamedTuple('_LocationStateChangeEvent', [('event_type', LocationStateChangeEventType), ('location_name', str), ('message', str), ('server_id', Optional[str])])):
def __new__(cls, event_type: LocationStateChangeEventType, location_name: str, message: str, server_id: Optional[str]=Non... | 2 | 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,776 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/grpc_server_state_subscriber.py | dagster._core.remote_representation.grpc_server_state_subscriber.LocationStateChangeEventType | from enum import Enum
class LocationStateChangeEventType(Enum):
LOCATION_UPDATED = 'LOCATION_UPDATED'
LOCATION_DISCONNECTED = 'LOCATION_DISCONNECTED'
LOCATION_RECONNECTED = 'LOCATION_RECONNECTED'
LOCATION_ERROR = 'LOCATION_ERROR' |
class LocationStateChangeEventType(Enum):
pass | 1 | 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,777 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/grpc_server_state_subscriber.py | dagster._core.remote_representation.grpc_server_state_subscriber.LocationStateSubscriber | import dagster._check as check
from typing import Callable, NamedTuple, Optional
class LocationStateSubscriber:
def __init__(self, callback: Callable[[LocationStateChangeEvent], None]):
check.callable_param(callback, 'callback')
self._callback = callback
def handle_event(self, event: Location... |
class LocationStateSubscriber:
def __init__(self, callback: Callable[[LocationStateChangeEvent], None]):
pass
def handle_event(self, event: LocationStateChangeEvent):
pass | 3 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 2 | 1 | 2 | 2 | 8 | 1 | 7 | 4 | 4 | 0 | 7 | 4 | 4 | 1 | 0 | 0 | 2 |
21,778 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/handle.py | dagster._core.remote_representation.handle.CompoundID | from dagster._record import record
from dagster._core.errors import DagsterInvariantViolationError
@record
class CompoundID:
"""Compound ID object for the two id schemes that state is recorded in the database against."""
remote_origin_id: str
selector_id: str
def to_string(self) -> str:
return... | @record
class CompoundID:
'''Compound ID object for the two id schemes that state is recorded in the database against.'''
def to_string(self) -> str:
pass
@staticmethod
def from_string(serialized: str):
pass
@staticmethod
def is_valid_string(serialized: str):
pass | 7 | 1 | 5 | 0 | 4 | 0 | 1 | 0.06 | 0 | 1 | 0 | 0 | 1 | 0 | 3 | 3 | 24 | 5 | 18 | 8 | 12 | 1 | 13 | 6 | 9 | 2 | 0 | 1 | 4 |
21,779 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/handle.py | dagster._core.remote_representation.handle.InstigatorHandle | from dagster._record import record
@record(kw_only=False)
class InstigatorHandle:
instigator_name: str
repository_handle: RepositoryHandle
@property
def repository_name(self) -> str:
return self.repository_handle.repository_name
@property
def location_name(self) -> str:
return... | @record(kw_only=False)
class InstigatorHandle:
@property
def repository_name(self) -> str:
pass
@property
def location_name(self) -> str:
pass
def get_remote_origin(self):
pass | 7 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 | 0 | 3 | 3 | 16 | 3 | 13 | 6 | 7 | 0 | 9 | 4 | 5 | 1 | 0 | 0 | 3 |
21,780 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/handle.py | dagster._core.remote_representation.handle.JobHandle | from dagster._core.definitions.selector import JobSubsetSelector, RepositorySelector
from dagster._record import record
@record(kw_only=False)
class JobHandle:
job_name: str
repository_handle: RepositoryHandle
def to_string(self):
return f'{self.location_name}.{self.repository_name}.{self.job_name... | @record(kw_only=False)
class JobHandle:
def to_string(self):
pass
@property
def repository_name(self):
pass
@property
def location_name(self):
pass
def get_remote_origin(self):
pass
def get_python_origin(self):
pass
def to_selector(self) -> Job... | 10 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 6 | 0 | 6 | 6 | 28 | 6 | 22 | 9 | 13 | 0 | 15 | 7 | 8 | 1 | 0 | 0 | 6 |
21,781 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/handle.py | dagster._core.remote_representation.handle.PartitionSetHandle | from dagster._record import record
@record
class PartitionSetHandle:
partition_set_name: str
repository_handle: RepositoryHandle
@property
def repository_name(self):
return self.repository_handle.repository_name
@property
def location_name(self):
return self.repository_handle.... | @record
class PartitionSetHandle:
@property
def repository_name(self):
pass
@property
def location_name(self):
pass
def get_remote_origin(self):
pass | 7 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 16 | 3 | 13 | 6 | 7 | 0 | 9 | 4 | 5 | 1 | 0 | 0 | 3 |
21,782 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/handle.py | dagster._core.remote_representation.handle.RepositoryHandle | from dagster._core.definitions.selector import JobSubsetSelector, RepositorySelector
from collections.abc import Mapping
from dagster._record import record
import sys
from typing import TYPE_CHECKING, Optional
from dagster._core.origin import RepositoryPythonOrigin
from dagster._core.code_pointer import ModuleCodePoint... | @whitelist_for_serdes
@record
class RepositoryHandle:
@classmethod
def from_location(cls, repository_name: str, code_location: 'CodeLocation'):
pass
@property
def location_name(self) -> str:
pass
def get_remote_origin(self) -> RemoteRepositoryOrigin:
pass
def get_pytho... | 13 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 0 | 7 | 5 | 0 | 5 | 0 | 7 | 7 | 62 | 8 | 54 | 17 | 37 | 0 | 21 | 9 | 12 | 1 | 0 | 0 | 7 |
21,783 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/historical.py | dagster._core.remote_representation.historical.HistoricalJob | from dagster._core.storage.tags import EXTERNAL_JOB_SOURCE_TAG_KEY
from dagster._core.snap import JobSnap
from typing import Optional
from dagster._core.remote_representation.job_index import JobIndex
import dagster._check as check
from dagster._core.remote_representation.represented import RepresentedJob
class Histor... |
class HistoricalJob(RepresentedJob):
'''HistoricalPipeline represents a pipeline that executed in the past
and has been reloaded into process by querying the instance. Notably
the user must pass in the pipeline snapshot id that was originally
assigned to the snapshot, rather than recomputing it which c... | 9 | 1 | 6 | 0 | 6 | 0 | 1 | 0.24 | 1 | 2 | 1 | 0 | 4 | 4 | 4 | 43 | 40 | 4 | 29 | 17 | 16 | 7 | 14 | 9 | 9 | 2 | 5 | 1 | 5 |
21,784 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/job_index.py | dagster._core.remote_representation.job_index.JobIndex | from dagster._config import ConfigSchemaSnapshot
from dagster._core.snap import DependencyStructureIndex, JobSnap
from dagster._core.snap.mode import ModeDefSnap
from dagster._core.snap.node import GraphDefSnap, OpDefSnap
from collections.abc import Mapping, Sequence
from typing import Any, Optional, Union
from dagster... |
class JobIndex:
def __init__(self, job_snapshot: JobSnap, parent_job_snapshot: Optional[JobSnap]):
pass
@property
def name(self) -> str:
pass
@property
def description(self) -> Optional[str]:
pass
@property
def tags(self) -> Mapping[str, Any]:
pass
@prop... | 25 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 0 | 10 | 4 | 0 | 17 | 0 | 17 | 17 | 104 | 23 | 81 | 33 | 52 | 0 | 58 | 22 | 40 | 3 | 0 | 2 | 21 |
21,785 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/remote_representation/represented.py | dagster._core.remote_representation.represented.RepresentedJob | from dagster._core.snap.job_snapshot import JobSnap
from collections.abc import Sequence
from dagster._core.snap.dagster_types import DagsterTypeSnap
from dagster._core.snap.dep_snapshot import DependencyStructureIndex
import dagster._check as check
from dagster._core.snap.mode import ModeDefSnap
from dagster._core.sna... |
class RepresentedJob(ABC):
'''RepresentedJob is a base class for ExternalPipeline or HistoricalPipeline.
The name is "represented" because this is an in-memory representation of a job.
The representation of a job could be referring to a job resident in
another process *or* could be referring to a histo... | 38 | 1 | 2 | 0 | 2 | 0 | 1 | 0.19 | 1 | 10 | 7 | 2 | 19 | 0 | 19 | 39 | 102 | 26 | 64 | 33 | 29 | 12 | 41 | 20 | 21 | 2 | 4 | 0 | 21 |
21,786 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/run_coordinator/base.py | dagster._core.run_coordinator.base.RunCoordinator | from dagster._core.storage.dagster_run import DagsterRun
from abc import ABC, abstractmethod
from dagster._core.instance import MayHaveInstanceWeakref, T_DagsterInstance
class RunCoordinator(ABC, MayHaveInstanceWeakref[T_DagsterInstance]):
@abstractmethod
def submit_run(self, context: SubmitRunContext) -> Dag... |
class RunCoordinator(ABC, MayHaveInstanceWeakref[T_DagsterInstance]):
@abstractmethod
def submit_run(self, context: SubmitRunContext) -> DagsterRun:
'''Submit a run to the run coordinator for execution.
Args:
context (SubmitRunContext): information about the submission - every run ... | 6 | 3 | 7 | 1 | 1 | 5 | 1 | 2.5 | 2 | 3 | 1 | 2 | 3 | 0 | 3 | 23 | 26 | 5 | 6 | 6 | 0 | 15 | 4 | 4 | 0 | 1 | 4 | 0 | 3 |
21,787 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/run_coordinator/base.py | dagster._core.run_coordinator.base.SubmitRunContext | from typing import TYPE_CHECKING, NamedTuple, Optional
from dagster._core.storage.dagster_run import DagsterRun
class SubmitRunContext(NamedTuple):
"""Context available within a run coordinator's submit_run method."""
dagster_run: DagsterRun
workspace: 'BaseWorkspaceRequestContext'
def get_request_hea... |
class SubmitRunContext(NamedTuple):
'''Context available within a run coordinator's submit_run method.'''
def get_request_header(self, key: str) -> Optional[str]:
pass | 2 | 1 | 13 | 2 | 7 | 4 | 3 | 0.5 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 1 | 19 | 4 | 10 | 4 | 7 | 5 | 10 | 4 | 7 | 3 | 1 | 2 | 3 |
21,788 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/run_coordinator/queued_run_coordinator.py | dagster._core.run_coordinator.queued_run_coordinator.QueuedRunCoordinator | from dagster._core.run_coordinator.base import RunCoordinator, SubmitRunContext
from typing_extensions import Self
from dagster._serdes import ConfigurableClass, ConfigurableClassData
from dagster._builtins import Bool
from collections.abc import Mapping, Sequence
from dagster._config.config_schema import UserConfigSch... |
class QueuedRunCoordinator(RunCoordinator[T_DagsterInstance], ConfigurableClass):
'''Enqueues runs via the run storage, to be deqeueued by the Dagster Daemon process. Requires
the Dagster Daemon process to be alive in order for runs to be launched.
'''
def __init__(self, max_concurrent_runs: Optional[... | 21 | 1 | 19 | 0 | 19 | 0 | 2 | 0.03 | 2 | 8 | 1 | 0 | 10 | 11 | 12 | 35 | 251 | 14 | 231 | 49 | 197 | 6 | 55 | 28 | 42 | 3 | 5 | 1 | 18 |
21,789 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/run_coordinator/queued_run_coordinator.py | dagster._core.run_coordinator.queued_run_coordinator.RunQueueConfig | from collections.abc import Mapping, Sequence
from typing import Any, NamedTuple, Optional
from dagster import DagsterEvent, IntSource, String, _check as check
class RunQueueConfig(NamedTuple('_RunQueueConfig', [('max_concurrent_runs', int), ('tag_concurrency_limits', Sequence[Mapping[str, Any]]), ('max_user_code_fail... |
class RunQueueConfig(NamedTuple('_RunQueueConfig', [('max_concurrent_runs', int), ('tag_concurrency_limits', Sequence[Mapping[str, Any]]), ('max_user_code_failure_retries', int), ('user_code_failure_retry_delay', int), ('should_block_op_concurrency_limited_runs', bool), ('op_concurrency_slot_buffer', int), ('explicitl... | 3 | 0 | 19 | 0 | 19 | 0 | 1 | 0 | 1 | 7 | 0 | 0 | 2 | 5 | 2 | 2 | 52 | 1 | 51 | 32 | 26 | 0 | 7 | 5 | 4 | 1 | 1 | 0 | 2 |
21,790 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/Scheduler.py | dagster._core.scheduler.Scheduler.DagsterDaemonScheduler | import os
from typing_extensions import Self
import dagster._check as check
from dagster._config import Field, IntSource
from dagster._serdes import ConfigurableClass
from dagster._serdes.config_class import ConfigurableClassData
from typing import Any, NamedTuple, Optional
from dagster._utils import mkdir_p
from dagst... |
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,791 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/Scheduler.py | dagster._core.scheduler.Scheduler.Scheduler | from dagster._core.instance import DagsterInstance
from typing import Any, NamedTuple, Optional
from dagster._time import get_current_timestamp
import abc
from dagster._annotations import public
from dagster._core.remote_representation.external import RemoteSchedule
import dagster._check as check
from dagster._core.def... | @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,792 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/execution.py | dagster._core.scheduler.execution.ScheduledExecutionFailed | from typing import NamedTuple, Optional
from collections.abc import Sequence
from dagster._utils.error import SerializableErrorInfo
from dagster._serdes import whitelist_for_serdes
import dagster._check as check
@whitelist_for_serdes
class ScheduledExecutionFailed(NamedTuple('_ScheduledExecutionFailed', [('run_id', Op... | @whitelist_for_serdes
class ScheduledExecutionFailed(NamedTuple('_ScheduledExecutionFailed', [('run_id', Optional[str]), ('errors', Sequence[SerializableErrorInfo])]), ScheduledExecutionResult):
def __new__(cls, run_id: Optional[str], errors: Sequence[SerializableErrorInfo]):
pass | 3 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 2 | 4 | 1 | 0 | 1 | 0 | 1 | 1 | 13 | 0 | 13 | 8 | 5 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,793 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/execution.py | dagster._core.scheduler.execution.ScheduledExecutionResult | class ScheduledExecutionResult:
pass | class ScheduledExecutionResult:
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,794 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/execution.py | dagster._core.scheduler.execution.ScheduledExecutionSkipped | from typing import NamedTuple, Optional
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes
class ScheduledExecutionSkipped(NamedTuple('_ScheduledExecutionSkipped', []), ScheduledExecutionResult):
pass | @whitelist_for_serdes
class ScheduledExecutionSkipped(NamedTuple('_ScheduledExecutionSkipped', []), ScheduledExecutionResult):
pass | 2 | 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,795 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/execution.py | dagster._core.scheduler.execution.ScheduledExecutionSuccess | import dagster._check as check
from typing import NamedTuple, Optional
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes
class ScheduledExecutionSuccess(NamedTuple('_ScheduledExecutionSuccess', [('run_id', str)]), ScheduledExecutionResult):
def __new__(cls, run_id: str):
return super(... | @whitelist_for_serdes
class ScheduledExecutionSuccess(NamedTuple('_ScheduledExecutionSuccess', [('run_id', str)]), ScheduledExecutionResult):
def __new__(cls, run_id: str):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 2 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 0 | 5 | 4 | 1 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,796 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/instigation.py | dagster._core.scheduler.instigation.AutoMaterializeAssetEvaluationRecord | from dagster_shared.serdes import EnumSerializer, deserialize_value, whitelist_for_serdes
from dagster._time import get_current_timestamp, utc_datetime_from_naive
from dagster._core.definitions.asset_key import T_EntityKey, entity_key_from_db_string
from dataclasses import dataclass
from dagster._core.definitions.decla... | @dataclass
class AutoMaterializeAssetEvaluationRecord(Generic[T_EntityKey]):
@classmethod
def from_db_row(cls, row) -> 'AutoMaterializeAssetEvaluationRecord':
pass
def get_evaluation_with_run_ids(self) -> AutomationConditionEvaluationWithRunIds[T_EntityKey]:
pass | 5 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 2 | 4 | 21 | 2 | 19 | 4 | 15 | 0 | 10 | 3 | 7 | 1 | 1 | 0 | 2 |
21,797 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/instigation.py | dagster._core.scheduler.instigation.DynamicPartitionsRequestResult | from typing import AbstractSet, Any, Generic, NamedTuple, Optional, Union
from collections.abc import Iterable, Mapping, Sequence
from dagster._utils import xor
import dagster._check as check
from dagster_shared.serdes import EnumSerializer, deserialize_value, whitelist_for_serdes
@whitelist_for_serdes
class DynamicPa... | @whitelist_for_serdes
class DynamicPartitionsRequestResult(NamedTuple('_DynamicPartitionsRequestResult', [('partitions_def_name', str), ('added_partitions', Optional[Sequence[str]]), ('deleted_partitions', Optional[Sequence[str]]), ('skipped_partitions', Sequence[str])])):
def __new__(cls, partitions_def_name: str... | 3 | 0 | 21 | 2 | 18 | 1 | 2 | 0.03 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 32 | 2 | 29 | 18 | 11 | 1 | 7 | 2 | 5 | 2 | 1 | 1 | 2 |
21,798 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/instigation.py | dagster._core.scheduler.instigation.InstigatorState | from dagster._core.definitions.run_request import InstigatorType as InstigatorType, SkipReason as SkipReason
from dagster._core.remote_origin import RemoteInstigatorOrigin
from dagster._core.definitions.selector import InstigatorSelector, RepositorySelector
from dagster._serdes import create_snapshot_id
import dagster.... | @whitelist_for_serdes(old_storage_names={'JobState'}, storage_field_names={'instigator_type': 'job_type', 'instigator_data': 'job_specific_data'})
class InstigatorState(NamedTuple('_InstigationState', [('origin', RemoteInstigatorOrigin), ('instigator_type', InstigatorType), ('status', InstigatorStatus), ('instigator_da... | 23 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 7 | 4 | 0 | 12 | 3 | 12 | 12 | 90 | 11 | 79 | 41 | 41 | 0 | 29 | 13 | 16 | 2 | 1 | 1 | 13 |
21,799 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/scheduler/instigation.py | dagster._core.scheduler.instigation.InstigatorStatus | from enum import Enum
from dagster_shared.serdes import EnumSerializer, deserialize_value, whitelist_for_serdes
@whitelist_for_serdes(serializer=InstigatorStatusBackcompatSerializer, old_storage_names={'JobStatus'})
class InstigatorStatus(Enum):
RUNNING = 'RUNNING'
STOPPED = 'STOPPED'
DECLARED_IN_CODE = 'D... | @whitelist_for_serdes(serializer=InstigatorStatusBackcompatSerializer, old_storage_names={'JobStatus'})
class InstigatorStatus(Enum):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 10 | 2 | 5 | 5 | 4 | 3 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.