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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22,000 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/load_target.py | dagster._core.workspace.load_target.WorkspaceFileTarget | from dagster_shared.record import record
from collections.abc import Sequence
from dagster._core.workspace.load import location_origin_from_autoload_defs_module_name, location_origin_from_module_name, location_origin_from_package_name, location_origin_from_python_file, location_origins_from_yaml_paths
from dagster._cor... | @record(kw_only=False)
class WorkspaceFileTarget(WorkspaceLoadTarget):
def create_origins(self) -> Sequence[CodeLocationOrigin]:
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 2 | 1 | 0 | 0 | 1 | 0 | 1 | 22 | 5 | 0 | 5 | 4 | 1 | 0 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
22,001 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/load_target.py | dagster._core.workspace.load_target.WorkspaceLoadTarget | from abc import ABC, abstractmethod
from collections.abc import Sequence
from dagster._core.remote_origin import CodeLocationOrigin, GrpcServerCodeLocationOrigin, InProcessCodeLocationOrigin, ManagedGrpcPythonEnvCodeLocationOrigin
class WorkspaceLoadTarget(ABC):
@abstractmethod
def create_origins(self) -> Seq... |
class WorkspaceLoadTarget(ABC):
@abstractmethod
def create_origins(self) -> Sequence[CodeLocationOrigin]:
'''Reloads the CodeLocationOrigins for this workspace.'''
pass | 3 | 1 | 2 | 0 | 1 | 1 | 1 | 0.33 | 1 | 1 | 0 | 9 | 1 | 0 | 1 | 21 | 4 | 0 | 3 | 3 | 0 | 1 | 2 | 2 | 0 | 1 | 4 | 0 | 1 |
22,002 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/permissions.py | dagster._core.workspace.permissions.PermissionResult | from typing import NamedTuple, Optional
class PermissionResult(NamedTuple('_PermissionResult', [('enabled', bool), ('disabled_reason', Optional[str])])):
def __bool__(self):
raise Exception("Don't check a PermissionResult for truthiness - check the `enabled` property instead") |
class PermissionResult(NamedTuple('_PermissionResult', [('enabled', bool), ('disabled_reason', Optional[str])])):
def __bool__(self):
pass | 2 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 7 | 0 | 7 | 4 | 3 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,003 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/permissions.py | dagster._core.workspace.permissions.Permissions | from enum import Enum, unique
@unique
class Permissions(str, Enum):
LAUNCH_PIPELINE_EXECUTION = 'launch_pipeline_execution'
LAUNCH_PIPELINE_REEXECUTION = 'launch_pipeline_reexecution'
START_SCHEDULE = 'start_schedule'
STOP_RUNNING_SCHEDULE = 'stop_running_schedule'
EDIT_SENSOR = 'edit_sensor'
U... | @unique
class Permissions(str, Enum):
def __str__(self) -> str:
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 1 | 0 | 1 | 116 | 21 | 1 | 20 | 19 | 18 | 0 | 20 | 19 | 18 | 1 | 4 | 0 | 1 |
22,004 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/workspace.py | dagster._core.workspace.workspace.CodeLocationEntry | from dagster._record import ImportFrom, record
from dagster._utils.error import SerializableErrorInfo
from collections.abc import Mapping
from typing import TYPE_CHECKING, Annotated, Optional
@record
class CodeLocationEntry:
origin: Annotated['CodeLocationOrigin', ImportFrom('dagster._core.remote_origin')]
cod... | @record
class CodeLocationEntry:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0 | 10 | 1 | 9 | 0 | 8 | 1 | 7 | 0 | 0 | 0 | 0 |
22,005 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/workspace.py | dagster._core.workspace.workspace.CodeLocationLoadStatus | from enum import Enum
class CodeLocationLoadStatus(Enum):
LOADING = 'LOADING'
LOADED = 'LOADED' |
class CodeLocationLoadStatus(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.67 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 3 | 0 | 3 | 3 | 2 | 2 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
22,006 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/workspace.py | dagster._core.workspace.workspace.CodeLocationStatusEntry | from dagster._record import ImportFrom, record
@record
class CodeLocationStatusEntry:
"""Slimmer version of WorkspaceLocationEntry, containing the minimum set of information required
to know whether the workspace needs reloading.
"""
location_name: str
load_status: CodeLocationLoadStatus
update... | @record
class CodeLocationStatusEntry:
'''Slimmer version of WorkspaceLocationEntry, containing the minimum set of information required
to know whether the workspace needs reloading.
'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 1 | 5 | 1 | 4 | 3 | 5 | 1 | 4 | 0 | 0 | 0 | 0 |
22,007 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/asset_daemon.py | dagster._daemon.asset_daemon.AssetDaemon | from dagster._daemon.utils import DaemonErrorCapture
from dagster._core.definitions.events import AssetKey
from dagster._core.definitions.automation_condition_sensor_definition import EMIT_BACKFILLS_METADATA_KEY
from dagster._core.storage.dagster_run import DagsterRun
from dagster._core.definitions.asset_daemon_cursor ... |
class AssetDaemon(DagsterDaemon):
def __init__(self, settings: Mapping[str, Any], pre_sensor_interval_seconds: int):
pass
@classmethod
def daemon_type(cls) -> str:
pass
def instrument_elapsed(self, sensor: Optional[RemoteSensor], elapsed: Optional[float], min_interval: int) -> None:
... | 19 | 1 | 66 | 7 | 55 | 4 | 7 | 0.07 | 1 | 35 | 17 | 0 | 11 | 5 | 12 | 43 | 857 | 99 | 710 | 183 | 630 | 50 | 289 | 114 | 275 | 23 | 6 | 6 | 90 |
22,008 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/asset_daemon.py | dagster._daemon.asset_daemon.AutoMaterializeLaunchContext | from dagster._daemon.utils import DaemonErrorCapture
from dagster._core.scheduler.instigation import InstigatorState, InstigatorStatus, InstigatorTick, SensorInstigatorData, TickData, TickStatus
from types import TracebackType
from dagster._core.remote_representation.external import RemoteRepository, RemoteSensor
from ... |
class AutoMaterializeLaunchContext:
def __init__(self, tick: InstigatorTick, remote_sensor: Optional[RemoteSensor], instance: DagsterInstance, logger: logging.Logger, tick_retention_settings):
pass
@property
def status(self) -> TickStatus:
pass
@property
def tick(self) -> Instigato... | 16 | 0 | 10 | 1 | 9 | 0 | 2 | 0.03 | 0 | 17 | 4 | 0 | 12 | 5 | 12 | 12 | 134 | 18 | 113 | 40 | 81 | 3 | 51 | 21 | 38 | 9 | 0 | 3 | 22 |
22,009 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/auto_run_reexecution/event_log_consumer.py | dagster._daemon.auto_run_reexecution.event_log_consumer.EventLogConsumerDaemon | from typing import TYPE_CHECKING, Callable, Optional
from dagster import DagsterEventType
import sys
import logging
from collections.abc import Iterator, Mapping, Sequence
from dagster._daemon.daemon import IntervalDaemon
from dagster._core.workspace.context import IWorkspaceProcessContext
from dagster._core.storage.da... |
class EventLogConsumerDaemon(IntervalDaemon):
def __init__(self, interval_seconds: int=_INTERVAL_SECONDS, event_log_fetch_limit: int=_EVENT_LOG_FETCH_LIMIT):
pass
@classmethod
def daemon_type(cls) -> str:
pass
@property
def handle_updated_runs_fns(self) -> Sequence[Callable[[IWorks... | 7 | 1 | 17 | 2 | 13 | 2 | 2 | 0.14 | 1 | 11 | 2 | 1 | 3 | 2 | 4 | 38 | 75 | 12 | 56 | 28 | 41 | 8 | 31 | 17 | 26 | 6 | 7 | 3 | 9 |
22,010 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/controller.py | dagster._daemon.controller.DagsterDaemonController | from dagster._daemon.daemon import BackfillDaemon, DagsterDaemon, MonitoringDaemon, SchedulerDaemon, SensorDaemon
from types import TracebackType
from typing_extensions import Self
from dagster._core.workspace.context import IWorkspaceProcessContext, WorkspaceProcessContext
from collections.abc import Iterable, Iterato... |
class DagsterDaemonController(AbstractContextManager):
def __init__(self, workspace_process_context: IWorkspaceProcessContext, daemons: Sequence[DagsterDaemon], grpc_server_registry: Optional[GrpcServerRegistry]=None, heartbeat_interval_seconds: float=DEFAULT_HEARTBEAT_INTERVAL_SECONDS, heartbeat_tolerance_second... | 14 | 0 | 16 | 2 | 14 | 1 | 3 | 0.04 | 1 | 13 | 1 | 0 | 12 | 0 | 12 | 35 | 222 | 33 | 185 | 42 | 158 | 8 | 108 | 27 | 95 | 6 | 5 | 3 | 31 |
22,011 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/daemon.py | dagster._daemon.daemon.BackfillDaemon | from dagster._daemon.backfill import execute_backfill_iteration_loop
from threading import Event
from dagster._core.utils import InheritContextThreadPoolExecutor
from contextlib import AbstractContextManager, ExitStack
from dagster._core.workspace.context import IWorkspaceProcessContext
from typing import Any, Generic,... |
class BackfillDaemon(DagsterDaemon):
def __init__(self, settings: Mapping[str, Any]) -> None:
pass
@classmethod
def daemon_type(cls) -> str:
pass
def __exit__(self, _exception_type, _exception_value, _traceback):
pass
def core_loop(self, workspace_process_context: IWorksp... | 6 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 7 | 1 | 0 | 3 | 3 | 4 | 35 | 33 | 4 | 29 | 13 | 19 | 0 | 14 | 7 | 9 | 2 | 6 | 1 | 5 |
22,012 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/daemon.py | dagster._daemon.daemon.DagsterDaemon | from dagster._core.telemetry import DAEMON_ALIVE, log_action
from dagster._daemon.types import DaemonHeartbeat
from dagster._utils.error import SerializableErrorInfo, serializable_error_info_from_exc_info
import logging
from abc import ABC, abstractmethod
from dagster._time import get_current_datetime
from typing impor... |
class DagsterDaemon(AbstractContextManager, ABC, Generic[TContext]):
def __init__(self):
pass
@classmethod
@abstractmethod
def daemon_type(cls) -> str:
'''returns: str.'''
pass
def __exit__(self, _exception_type, _exception_value, _traceback):
pass
def run_dae... | 10 | 2 | 25 | 3 | 20 | 2 | 3 | 0.09 | 3 | 10 | 3 | 5 | 5 | 3 | 6 | 31 | 160 | 22 | 127 | 39 | 99 | 12 | 58 | 19 | 50 | 7 | 5 | 5 | 17 |
22,013 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/daemon.py | dagster._daemon.daemon.IntervalDaemon | import time
from dagster._utils.error import SerializableErrorInfo, serializable_error_info_from_exc_info
import random
from dagster import DagsterInstance, _check as check
from abc import ABC, abstractmethod
from threading import Event
import sys
class IntervalDaemon(DagsterDaemon[TContext], ABC):
def __init__(s... |
class IntervalDaemon(DagsterDaemon[TContext], ABC):
def __init__(self, interval_seconds, *, interval_jitter_seconds: float=0, startup_jitter_seconds: float=0):
pass
def core_loop(self, workspace_process_context: TContext, shutdown_event: Event) -> DaemonIterator:
pass
@abstractmethod
... | 5 | 0 | 12 | 0 | 11 | 0 | 2 | 0 | 2 | 5 | 1 | 3 | 3 | 3 | 3 | 34 | 39 | 3 | 36 | 21 | 22 | 0 | 26 | 10 | 22 | 5 | 6 | 2 | 7 |
22,014 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/daemon.py | dagster._daemon.daemon.MonitoringDaemon | from dagster._daemon.monitoring import execute_concurrency_slots_iteration, execute_run_monitoring_iteration
from dagster._core.workspace.context import IWorkspaceProcessContext
class MonitoringDaemon(IntervalDaemon):
@classmethod
def daemon_type(cls) -> str:
return 'MONITORING'
def run_iteration... |
class MonitoringDaemon(IntervalDaemon):
@classmethod
def daemon_type(cls) -> str:
pass
def run_iteration(self, workspace_process_context: IWorkspaceProcessContext) -> DaemonIterator:
pass | 4 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 2 | 36 | 11 | 1 | 10 | 7 | 3 | 0 | 6 | 3 | 3 | 1 | 7 | 0 | 2 |
22,015 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/daemon.py | dagster._daemon.daemon.SchedulerDaemon | from dagster import DagsterInstance, _check as check
from dagster._core.scheduler.scheduler import DagsterDaemonScheduler
from threading import Event
from dagster._core.workspace.context import IWorkspaceProcessContext
from dagster._scheduler.scheduler import execute_scheduler_iteration_loop
class SchedulerDaemon(Dags... |
class SchedulerDaemon(DagsterDaemon):
@classmethod
def daemon_type(cls) -> str:
pass
def scheduler_delay_instrumentation(self, scheduler_id: str, next_iteration_timestamp: float, now_timestamp: float) -> None:
pass
def core_loop(self, workspace_process_context: IWorkspaceProcessConte... | 5 | 0 | 9 | 1 | 9 | 0 | 2 | 0 | 1 | 3 | 1 | 0 | 1 | 0 | 2 | 33 | 21 | 2 | 19 | 9 | 11 | 0 | 8 | 4 | 5 | 2 | 6 | 1 | 3 |
22,016 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/daemon.py | dagster._daemon.daemon.SensorDaemon | from dagster._core.remote_representation.external import RemoteSensor
from collections.abc import Generator, Mapping
from typing import Any, Generic, Optional, TypeVar, Union
from dagster._daemon.sensor import execute_sensor_iteration_loop
from dagster._core.utils import InheritContextThreadPoolExecutor
from contextlib... |
class SensorDaemon(DagsterDaemon):
def __init__(self, settings: Mapping[str, Any]) -> None:
pass
def instrument_elapsed(self, sensor: RemoteSensor, elapsed: Optional[float], min_interval: int) -> None:
pass
@classmethod
def daemon_type(cls) -> str:
pass
def __exit__(self,... | 7 | 0 | 10 | 0 | 9 | 0 | 2 | 0 | 1 | 7 | 1 | 0 | 3 | 4 | 4 | 35 | 43 | 4 | 39 | 15 | 29 | 0 | 18 | 9 | 13 | 3 | 6 | 2 | 6 |
22,017 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/daemon.py | dagster._daemon.daemon.SpanMarker | from enum import Enum
class SpanMarker(Enum):
START_SPAN = 'START_SPAN'
END_SPAN = 'END_SPAN' |
class SpanMarker(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 |
22,018 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/run_coordinator/queued_run_coordinator_daemon.py | dagster._daemon.run_coordinator.queued_run_coordinator_daemon.QueuedRunCoordinatorDaemon | from dagster._core.utils import InheritContextThreadPoolExecutor
from dagster._utils.tags import TagConcurrencyLimitsCounter
from dagster._core.instance.config import ConcurrencyConfig
from contextlib import ExitStack
from dagster._core.errors import DagsterCodeLocationLoadError, DagsterUserCodeUnreachableError
from da... |
class QueuedRunCoordinatorDaemon(IntervalDaemon):
'''Used with the QueuedRunCoordinator on the instance. This process finds queued runs from the run
store and launches them.
'''
def __init__(self, interval_seconds, page_size=PAGE_SIZE) -> None:
pass
def _get_executor(self, max_workers) ->... | 17 | 1 | 29 | 3 | 25 | 1 | 4 | 0.05 | 1 | 18 | 4 | 0 | 13 | 8 | 14 | 48 | 444 | 53 | 374 | 109 | 315 | 19 | 184 | 64 | 168 | 19 | 7 | 5 | 54 |
22,019 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/sensor.py | dagster._daemon.sensor.BackfillSubmission | from typing import TYPE_CHECKING, Callable, NamedTuple, Optional, Union, cast
class BackfillSubmission(NamedTuple):
"""Placeholder for launched backfills."""
backfill_id: str |
class BackfillSubmission(NamedTuple):
'''Placeholder for launched backfills.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
22,020 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/sensor.py | dagster._daemon.sensor.DagsterSensorDaemonError | from dagster_shared.error import DagsterError
class DagsterSensorDaemonError(DagsterError):
"""Error when running the SensorDaemon.""" |
class DagsterSensorDaemonError(DagsterError):
'''Error when running the SensorDaemon.'''
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 |
22,021 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/sensor.py | dagster._daemon.sensor.SensorLaunchContext | from dagster._core.definitions.sensor_definition import DefaultSensorStatus, SensorType
import datetime
import logging
from typing import TYPE_CHECKING, Callable, NamedTuple, Optional, Union, cast
from dagster._core.errors import DagsterCodeLocationLoadError, DagsterInvalidInvocationError, DagsterUserCodeUnreachableErr... |
class SensorLaunchContext(AbstractContextManager):
def __init__(self, remote_sensor: RemoteSensor, tick: InstigatorTick, instance: DagsterInstance, logger: logging.Logger, tick_retention_settings):
pass
@property
def status(self) -> TickStatus:
pass
@property
def logger(self) -> lo... | 24 | 0 | 12 | 1 | 11 | 1 | 3 | 0.05 | 1 | 18 | 6 | 0 | 17 | 6 | 17 | 40 | 230 | 35 | 190 | 63 | 147 | 10 | 100 | 38 | 82 | 12 | 5 | 3 | 43 |
22,022 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/sensor.py | dagster._daemon.sensor.SkippedSensorRun | from typing import TYPE_CHECKING, Callable, NamedTuple, Optional, Union, cast
from dagster._core.storage.dagster_run import DagsterRun, DagsterRunStatus, RunsFilter
class SkippedSensorRun(NamedTuple):
"""Placeholder for runs that are skipped during the run_key idempotence check."""
run_key: Optional[str]
e... |
class SkippedSensorRun(NamedTuple):
'''Placeholder for runs that are skipped during the run_key idempotence check.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 3 | 1 | 2 | 1 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
22,023 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/sensor.py | dagster._daemon.sensor.SubmitRunRequestResult | from dagster._core.storage.dagster_run import DagsterRun, DagsterRunStatus, RunsFilter
from typing import TYPE_CHECKING, Callable, NamedTuple, Optional, Union, cast
from dagster._utils.error import SerializableErrorInfo
class SubmitRunRequestResult(NamedTuple):
run_key: Optional[str]
error_info: Optional[Seria... |
class SubmitRunRequestResult(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 |
22,024 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/types.py | dagster._daemon.types.DaemonHeartbeat | import dagster._check as check
from collections.abc import Sequence
from typing import NamedTuple, Optional
from dagster._utils.error import SerializableErrorInfo
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes(serializer=DaemonHeartbeatSerializer)
class DaemonHeartbeat(NamedTuple('_DaemonHeartb... | @whitelist_for_serdes(serializer=DaemonHeartbeatSerializer)
class DaemonHeartbeat(NamedTuple('_DaemonHeartbeat', [('timestamp', float), ('daemon_type', str), ('daemon_id', Optional[str]), ('errors', Optional[Sequence[SerializableErrorInfo]])])):
def __new__(cls, timestamp: float, daemon_type: str, daemon_id: Optio... | 3 | 0 | 16 | 1 | 15 | 0 | 1 | 0 | 1 | 5 | 1 | 0 | 1 | 0 | 1 | 1 | 27 | 1 | 26 | 18 | 8 | 0 | 4 | 2 | 2 | 1 | 1 | 0 | 1 |
22,025 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/types.py | dagster._daemon.types.DaemonHeartbeatSerializer | from dagster_shared.serdes.serdes import NamedTupleSerializer, UnknownSerdesValue
class DaemonHeartbeatSerializer(NamedTupleSerializer['DaemonHeartbeat']):
def before_unpack(self, context, unpacked_dict):
if isinstance(unpacked_dict.get('daemon_type'), UnknownSerdesValue):
unknown = unpacked_d... |
class DaemonHeartbeatSerializer(NamedTupleSerializer['DaemonHeartbeat']):
def before_unpack(self, context, unpacked_dict):
pass | 2 | 0 | 11 | 0 | 9 | 3 | 3 | 0.3 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 34 | 12 | 0 | 10 | 3 | 8 | 3 | 10 | 3 | 8 | 3 | 7 | 1 | 3 |
22,026 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/types.py | dagster._daemon.types.DaemonStatus | import dagster._check as check
from typing import NamedTuple, Optional
class DaemonStatus(NamedTuple('_DaemonStatus', [('daemon_type', str), ('required', bool), ('healthy', Optional[bool]), ('last_heartbeat', Optional[DaemonHeartbeat])])):
"""Daemon statuses are derived from daemon heartbeats and instance configur... |
class DaemonStatus(NamedTuple('_DaemonStatus', [('daemon_type', str), ('required', bool), ('healthy', Optional[bool]), ('last_heartbeat', Optional[DaemonHeartbeat])])):
'''Daemon statuses are derived from daemon heartbeats and instance configuration to provide an
overview about the daemon's liveness.
'''
... | 2 | 1 | 14 | 0 | 14 | 0 | 1 | 0.12 | 1 | 4 | 1 | 0 | 1 | 0 | 1 | 1 | 29 | 1 | 25 | 18 | 7 | 3 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,027 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_daemon/utils.py | dagster._daemon.utils.DaemonErrorCapture | import logging
from dagster._utils.error import ExceptionInfo, SerializableErrorInfo, serializable_error_info_from_exc_info
class DaemonErrorCapture:
@staticmethod
def default_process_exception(exc_info: ExceptionInfo, logger: logging.Logger, log_message: str) -> SerializableErrorInfo:
error_info = se... |
class DaemonErrorCapture:
@staticmethod
def default_process_exception(exc_info: ExceptionInfo, logger: logging.Logger, log_message: str) -> SerializableErrorInfo:
pass | 3 | 0 | 8 | 0 | 8 | 0 | 1 | 0.09 | 0 | 3 | 1 | 0 | 0 | 0 | 1 | 1 | 13 | 1 | 11 | 9 | 4 | 1 | 6 | 4 | 4 | 1 | 0 | 0 | 1 |
22,028 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/__generated__/dagster_api_pb2_grpc.py | dagster._grpc.__generated__.dagster_api_pb2_grpc.DagsterApi | from . import dagster_api_pb2 as dagster__api__pb2
import grpc
class DagsterApi(object):
"""Missing associated documentation comment in .proto file."""
@staticmethod
def Ping(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None... |
class DagsterApi(object):
'''Missing associated documentation comment in .proto file.'''
@staticmethod
def Ping(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None):
pass
@staticmethod
... | 53 | 1 | 27 | 0 | 27 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 26 | 26 | 756 | 26 | 729 | 339 | 390 | 1 | 53 | 27 | 26 | 1 | 1 | 0 | 26 |
22,029 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/__generated__/dagster_api_pb2_grpc.py | dagster._grpc.__generated__.dagster_api_pb2_grpc.DagsterApiServicer | import grpc
class DagsterApiServicer(object):
"""Missing associated documentation comment in .proto file."""
def Ping(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not ... |
class DagsterApiServicer(object):
'''Missing associated documentation comment in .proto file.'''
def Ping(self, request, context):
'''Missing associated documentation comment in .proto file.'''
pass
def Heartbeat(self, request, context):
'''Missing associated documentation comment... | 27 | 27 | 5 | 0 | 4 | 1 | 1 | 0.26 | 1 | 1 | 0 | 2 | 26 | 0 | 26 | 26 | 158 | 26 | 105 | 27 | 78 | 27 | 105 | 27 | 78 | 1 | 1 | 0 | 26 |
22,030 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/__generated__/dagster_api_pb2_grpc.py | dagster._grpc.__generated__.dagster_api_pb2_grpc.DagsterApiStub | from . import dagster_api_pb2 as dagster__api__pb2
class DagsterApiStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Ping = channel.unary_unary('/api.Dag... |
class DagsterApiStub(object):
'''Missing associated documentation comment in .proto file.'''
def __init__(self, channel):
'''Constructor.
Args:
channel: A grpc.Channel.
'''
pass | 2 | 2 | 136 | 1 | 131 | 4 | 1 | 0.04 | 1 | 0 | 0 | 0 | 1 | 26 | 1 | 1 | 139 | 2 | 132 | 28 | 130 | 5 | 28 | 28 | 26 | 1 | 1 | 0 | 1 |
22,031 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/client.py | dagster._grpc.client.DagsterGrpcClient | import sys
from dagster._grpc.utils import default_grpc_timeout, default_repository_grpc_timeout, default_schedule_grpc_timeout, default_sensor_grpc_timeout, max_rx_bytes, max_send_bytes
from grpc_health.v1.health_pb2_grpc import HealthStub
from dagster._core.instance import DagsterInstance
from dagster._core.errors im... |
class DagsterGrpcClient:
def __init__(self, port: Optional[int]=None, socket: Optional[str]=None, host: str='localhost', use_ssl: bool=False, metadata: Optional[Sequence[tuple[str, str]]]=None):
pass
@property
def metadata(self) -> Sequence[tuple[str, str]]:
pass
@property
def use_... | 49 | 0 | 14 | 1 | 12 | 1 | 2 | 0.05 | 0 | 25 | 11 | 0 | 42 | 7 | 42 | 42 | 620 | 73 | 526 | 195 | 391 | 25 | 195 | 88 | 152 | 5 | 0 | 2 | 67 |
22,032 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/impl.py | dagster._grpc.impl.RunInSubprocessComplete | class RunInSubprocessComplete:
"""Sentinel passed over multiprocessing Queue when subprocess is complete.""" | class RunInSubprocessComplete:
'''Sentinel passed over multiprocessing Queue when subprocess is complete.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
22,033 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/impl.py | dagster._grpc.impl.StartRunInSubprocessSuccessful | class StartRunInSubprocessSuccessful:
"""Sentinel passed over multiprocessing Queue when launch is successful in subprocess.""" | class StartRunInSubprocessSuccessful:
'''Sentinel passed over multiprocessing Queue when launch is successful in subprocess.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
22,034 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/proxy_server.py | dagster._grpc.proxy_server.DagsterProxyApiServicer | from dagster._serdes import deserialize_value, serialize_value
from dagster._utils.error import serializable_error_info_from_exc_info
from dagster._core.remote_representation.grpc_server_registry import GrpcServerRegistry
from dagster._grpc.client import DEFAULT_GRPC_TIMEOUT, DEFAULT_REPOSITORY_GRPC_TIMEOUT, DEFAULT_SE... |
class DagsterProxyApiServicer(DagsterApiServicer):
'''Service that implements the dagster gRPC API by opening up a "dagster api grpc" subprocess, and proxying
all gRPC calls to the server running in that subprocess. This allows us to reload code by
restarting the subprocess without needing to restart the p... | 34 | 1 | 10 | 1 | 8 | 0 | 2 | 0.06 | 1 | 22 | 12 | 0 | 33 | 23 | 33 | 59 | 357 | 67 | 279 | 88 | 227 | 18 | 172 | 71 | 137 | 5 | 2 | 3 | 58 |
22,035 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/server.py | dagster._grpc.server.CouldNotBindGrpcServerToAddress | class CouldNotBindGrpcServerToAddress(Exception):
pass | class CouldNotBindGrpcServerToAddress(Exception):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
22,036 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/server.py | dagster._grpc.server.CouldNotStartServerProcess | class CouldNotStartServerProcess(Exception):
def __init__(self, port=None, socket=None):
super().__init__('Could not start server with ' + (f'port {port}' if port is not None else f'socket {socket}')) | class CouldNotStartServerProcess(Exception):
def __init__(self, port=None, socket=None):
pass | 2 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 11 | 6 | 0 | 6 | 2 | 4 | 0 | 3 | 2 | 1 | 2 | 3 | 0 | 2 |
22,037 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/server.py | dagster._grpc.server.DagsterApiServer | from dagster._grpc.__generated__ import dagster_api_pb2
from typing import TYPE_CHECKING, Any, Callable, Optional, TypedDict, cast
import queue
from dagster_shared.libraries import DagsterLibraryRegistry
from dagster._core.types.loadable_target_origin import LoadableTargetOrigin, enter_loadable_target_origin_load_conte... |
class DagsterApiServer(DagsterApiServicer):
def __init__(self, server_termination_event: ThreadingEventType, logger: logging.Logger, server_threadpool_executor: FuturesAwareThreadPoolExecutor, loadable_target_origin: Optional[LoadableTargetOrigin]=None, heartbeat: bool=False, heartbeat_timeout: int=30, lazy_load_... | 42 | 0 | 21 | 2 | 19 | 1 | 2 | 0.04 | 1 | 50 | 33 | 0 | 38 | 23 | 38 | 64 | 857 | 98 | 730 | 221 | 596 | 29 | 304 | 126 | 264 | 10 | 2 | 5 | 90 |
22,038 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/server.py | dagster._grpc.server.DagsterCodeServerUtilizationMetrics | from dagster._utils.container import ContainerUtilizationMetrics, retrieve_containerized_utilization_metrics
from typing import TYPE_CHECKING, Any, Callable, Optional, TypedDict, cast
from dagster._core.utils import FuturesAwareThreadPoolExecutor, RequestUtilizationMetrics
class DagsterCodeServerUtilizationMetrics(Typ... |
class DagsterCodeServerUtilizationMetrics(TypedDict):
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 |
22,039 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/server.py | dagster._grpc.server.DagsterGrpcServer | import grpc
from dagster._grpc.__generated__.dagster_api_pb2_grpc import DagsterApiServicer, add_DagsterApiServicer_to_server
from dagster._core.utils import FuturesAwareThreadPoolExecutor, RequestUtilizationMetrics
import dagster_shared.seven as seven
import os
import threading
from grpc_health.v1 import health, healt... |
class DagsterGrpcServer:
def __init__(self, server_termination_event: threading.Event, dagster_api_servicer: DagsterApiServicer, logger: logging.Logger, threadpool_executor: FuturesAwareThreadPoolExecutor, host='localhost', port: Optional[int]=None, socket: Optional[str]=None, enable_metrics: bool=False):
... | 3 | 0 | 53 | 7 | 33 | 14 | 4 | 0.42 | 0 | 9 | 3 | 0 | 2 | 7 | 2 | 2 | 108 | 15 | 66 | 23 | 53 | 28 | 33 | 13 | 30 | 7 | 0 | 1 | 8 |
22,040 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/server.py | dagster._grpc.server.GrpcApiMetrics | from typing import TYPE_CHECKING, Any, Callable, Optional, TypedDict, cast
class GrpcApiMetrics(TypedDict):
current_request_count: Optional[int] |
class GrpcApiMetrics(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
22,041 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/server.py | dagster._grpc.server.GrpcServerProcess | import warnings
from dagster._core.types.loadable_target_origin import LoadableTargetOrigin, enter_loadable_target_origin_load_context
import os
import subprocess
from dagster._grpc.constants import GrpcServerCommand
from dagster._utils import get_run_crash_explanation, safe_tempfile_path_unmanaged
from dagster_shared.... |
class GrpcServerProcess:
def __init__(self, instance_ref: Optional[InstanceRef], server_command: GrpcServerCommand=GrpcServerCommand.API_GRPC, location_name: Optional[str]=None, loadable_target_origin: Optional[LoadableTargetOrigin]=None, force_port: bool=False, max_retries: int=10, max_workers: Optional[int]=Non... | 13 | 0 | 16 | 1 | 15 | 0 | 2 | 0.01 | 0 | 11 | 4 | 0 | 11 | 27 | 11 | 11 | 187 | 20 | 166 | 65 | 130 | 1 | 94 | 42 | 81 | 5 | 0 | 3 | 27 |
22,042 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/server.py | dagster._grpc.server.LoadedRepositories | from dagster._core.definitions.reconstruct import ReconstructableRepository
from typing import TYPE_CHECKING, Any, Callable, Optional, TypedDict, cast
from dagster_shared.serdes.objects.models.defs_state_info import DefsStateInfo
from dagster._core.definitions.repository_definition.repository_definition import Reposito... |
class LoadedRepositories:
def __init__(self, loadable_target_origin: Optional[LoadableTargetOrigin], container_image: Optional[str], entry_point: Sequence[str], container_context: Optional[Mapping[str, Any]], defs_state_info: Optional[DefsStateInfo]=None):
pass
@property
def loadable_repository_sy... | 10 | 0 | 15 | 1 | 13 | 1 | 1 | 0.06 | 0 | 10 | 4 | 0 | 5 | 6 | 5 | 5 | 84 | 8 | 72 | 27 | 56 | 4 | 31 | 17 | 25 | 3 | 0 | 3 | 7 |
22,043 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.CanCancelExecutionRequest | from dagster._serdes import serialize_value, whitelist_for_serdes
import dagster._check as check
from typing import AbstractSet, Any, NamedTuple, Optional
@whitelist_for_serdes
class CanCancelExecutionRequest(NamedTuple('_CanCancelExecutionRequest', [('run_id', str)])):
def __new__(cls, run_id: str):
retu... | @whitelist_for_serdes
class CanCancelExecutionRequest(NamedTuple('_CanCancelExecutionRequest', [('run_id', str)])):
def __new__(cls, run_id: str):
pass | 3 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 6 | 0 | 6 | 2 | 4 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,044 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.CanCancelExecutionResult | from dagster._serdes import serialize_value, whitelist_for_serdes
from typing import AbstractSet, Any, NamedTuple, Optional
import dagster._check as check
@whitelist_for_serdes
class CanCancelExecutionResult(NamedTuple('_CancelExecutionResult', [('can_cancel', bool)])):
def __new__(cls, can_cancel: bool):
... | @whitelist_for_serdes
class CanCancelExecutionResult(NamedTuple('_CancelExecutionResult', [('can_cancel', bool)])):
def __new__(cls, can_cancel: bool):
pass | 3 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 6 | 0 | 6 | 2 | 4 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,045 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.CancelExecutionRequest | from typing import AbstractSet, Any, NamedTuple, Optional
import dagster._check as check
from dagster._serdes import serialize_value, whitelist_for_serdes
@whitelist_for_serdes
class CancelExecutionRequest(NamedTuple('_CancelExecutionRequest', [('run_id', str)])):
def __new__(cls, run_id: str):
return sup... | @whitelist_for_serdes
class CancelExecutionRequest(NamedTuple('_CancelExecutionRequest', [('run_id', str)])):
def __new__(cls, run_id: str):
pass | 3 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 6 | 0 | 6 | 2 | 4 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,046 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.CancelExecutionResult | import dagster._check as check
from dagster._utils.error import SerializableErrorInfo
from dagster._serdes import serialize_value, whitelist_for_serdes
from typing import AbstractSet, Any, NamedTuple, Optional
@whitelist_for_serdes
class CancelExecutionResult(NamedTuple('_CancelExecutionResult', [('success', bool), ('... | @whitelist_for_serdes
class CancelExecutionResult(NamedTuple('_CancelExecutionResult', [('success', bool), ('message', Optional[str]), ('serializable_error_info', Optional[SerializableErrorInfo])])):
def __new__(cls, success: bool, message: Optional[str], serializable_error_info: Optional[SerializableErrorInfo]):
... | 3 | 0 | 14 | 0 | 14 | 0 | 1 | 0 | 1 | 4 | 1 | 0 | 1 | 0 | 1 | 1 | 24 | 0 | 24 | 16 | 8 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,047 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.ExecuteExternalJobArgs | from dagster._serdes import serialize_value, whitelist_for_serdes
from typing import AbstractSet, Any, NamedTuple, Optional
from dagster._core.instance.ref import InstanceRef
from dagster._core.remote_origin import CodeLocationOrigin, RemoteJobOrigin, RemoteRepositoryOrigin
import dagster._check as check
@whitelist_fo... | @whitelist_for_serdes(storage_name='ExecuteExternalPipelineArgs', storage_field_names={'job_origin': 'pipeline_origin', 'run_id': 'pipeline_run_id'})
class ExecuteExternalJobArgs(NamedTuple('_ExecuteExternalJobArgs', [('job_origin', RemoteJobOrigin), ('run_id', str), ('instance_ref', Optional[InstanceRef])])):
def... | 3 | 0 | 16 | 0 | 16 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 26 | 0 | 26 | 16 | 10 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,048 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.ExecuteRunArgs | from dagster._core.origin import JobPythonOrigin, get_python_environment_entry_point
from dagster._serdes import serialize_value, whitelist_for_serdes
from collections.abc import Mapping, Sequence
from dagster._core.instance.ref import InstanceRef
from typing import AbstractSet, Any, NamedTuple, Optional
import dagster... | @whitelist_for_serdes(storage_field_names={'job_origin': 'pipeline_origin', 'run_id': 'pipeline_run_id'})
class ExecuteRunArgs(NamedTuple('_ExecuteRunArgs', [('job_origin', JobPythonOrigin), ('run_id', str), ('instance_ref', Optional[InstanceRef]), ('set_exit_code_on_failure', Optional[bool])])):
def __new__(cls, ... | 4 | 0 | 15 | 0 | 15 | 1 | 2 | 0.05 | 1 | 5 | 1 | 0 | 2 | 0 | 2 | 2 | 43 | 1 | 41 | 19 | 22 | 2 | 5 | 3 | 2 | 2 | 1 | 0 | 3 |
22,049 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.ExecuteStepArgs | from dagster._core.execution.retries import RetryMode
import base64
from dagster._core.origin import JobPythonOrigin, get_python_environment_entry_point
from typing import AbstractSet, Any, NamedTuple, Optional
from dagster._core.execution.plan.state import KnownExecutionState
from dagster._core.instance.ref import Ins... | @whitelist_for_serdes(storage_field_names={'job_origin': 'pipeline_origin', 'run_id': 'pipeline_run_id'})
class ExecuteStepArgs(NamedTuple('_ExecuteStepArgs', [('job_origin', JobPythonOrigin), ('run_id', str), ('step_keys_to_execute', Optional[Sequence[str]]), ('instance_ref', Optional[InstanceRef]), ('retry_mode', Opt... | 6 | 2 | 13 | 0 | 11 | 2 | 1 | 0.13 | 1 | 7 | 2 | 0 | 4 | 0 | 4 | 4 | 71 | 3 | 60 | 29 | 31 | 8 | 9 | 5 | 4 | 2 | 1 | 0 | 5 |
22,050 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.ExecutionPlanSnapshotArgs | from typing import AbstractSet, Any, NamedTuple, Optional
from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey
from dagster._core.definitions.events import AssetKey
from dagster._core.remote_origin import CodeLocationOrigin, RemoteJobOrigin, RemoteRepositoryOrigin
from dagster._core.remote_... | @whitelist_for_serdes(storage_field_names={'job_origin': 'pipeline_origin', 'job_snapshot_id': 'pipeline_snapshot_id', 'op_selection': 'solid_selection'})
class ExecutionPlanSnapshotArgs(NamedTuple('_ExecutionPlanSnapshotArgs', [('job_origin', RemoteJobOrigin), ('op_selection', Sequence[str]), ('run_config', Mapping[st... | 3 | 0 | 32 | 0 | 32 | 0 | 1 | 0 | 1 | 6 | 1 | 0 | 1 | 0 | 1 | 1 | 49 | 0 | 49 | 30 | 19 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,051 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.ExternalJobArgs | from dagster._serdes import serialize_value, whitelist_for_serdes
import dagster._check as check
from dagster._core.remote_origin import CodeLocationOrigin, RemoteJobOrigin, RemoteRepositoryOrigin
from typing import AbstractSet, Any, NamedTuple, Optional
from dagster._core.instance.ref import InstanceRef
@whitelist_fo... | @whitelist_for_serdes
class ExternalJobArgs(NamedTuple('_ExternalJobArgs', [('repository_origin', RemoteRepositoryOrigin), ('instance_ref', InstanceRef), ('name', str)])):
def __new__(cls, repository_origin: RemoteRepositoryOrigin, instance_ref: InstanceRef, name: str):
pass | 3 | 0 | 11 | 0 | 11 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 21 | 0 | 21 | 13 | 8 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,052 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.ExternalScheduleExecutionArgs | from collections.abc import Mapping, Sequence
from dagster._serdes import serialize_value, whitelist_for_serdes
from dagster._core.remote_origin import CodeLocationOrigin, RemoteJobOrigin, RemoteRepositoryOrigin
import dagster._check as check
from dagster._core.instance.ref import InstanceRef
from typing import Abstrac... | @whitelist_for_serdes
class ExternalScheduleExecutionArgs(NamedTuple('_ExternalScheduleExecutionArgs', [('repository_origin', RemoteRepositoryOrigin), ('instance_ref', Optional[InstanceRef]), ('schedule_name', str), ('scheduled_execution_timestamp', Optional[float]), ('scheduled_execution_timezone', Optional[str]), ('l... | 3 | 0 | 27 | 0 | 27 | 0 | 1 | 0 | 1 | 5 | 0 | 0 | 1 | 0 | 1 | 1 | 41 | 0 | 41 | 24 | 17 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,053 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.GetCurrentImageResult | from dagster._utils.error import SerializableErrorInfo
import dagster._check as check
from typing import AbstractSet, Any, NamedTuple, Optional
from dagster._serdes import serialize_value, whitelist_for_serdes
@whitelist_for_serdes
class GetCurrentImageResult(NamedTuple('_GetCurrentImageResult', [('current_image', Opt... | @whitelist_for_serdes
class GetCurrentImageResult(NamedTuple('_GetCurrentImageResult', [('current_image', Optional[str]), ('serializable_error_info', Optional[SerializableErrorInfo])])):
def __new__(cls, current_image: Optional[str], serializable_error_info: Optional[SerializableErrorInfo]):
pass | 3 | 0 | 10 | 0 | 10 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 0 | 1 | 1 | 19 | 0 | 19 | 12 | 7 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,054 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.GetCurrentRunsResult | from dagster._serdes import serialize_value, whitelist_for_serdes
import dagster._check as check
from typing import AbstractSet, Any, NamedTuple, Optional
from collections.abc import Mapping, Sequence
from dagster._utils.error import SerializableErrorInfo
@whitelist_for_serdes
class GetCurrentRunsResult(NamedTuple('_G... | @whitelist_for_serdes
class GetCurrentRunsResult(NamedTuple('_GetCurrentRunsResult', [('current_runs', Sequence[str]), ('serializable_error_info', Optional[SerializableErrorInfo])])):
def __new__(cls, current_runs: Sequence[str], serializable_error_info: Optional[SerializableErrorInfo]):
pass | 3 | 0 | 12 | 0 | 12 | 0 | 1 | 0 | 1 | 4 | 1 | 0 | 1 | 0 | 1 | 1 | 21 | 0 | 21 | 14 | 7 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,055 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.JobSubsetSnapshotArgs | import dagster._check as check
from dagster._core.remote_origin import CodeLocationOrigin, RemoteJobOrigin, RemoteRepositoryOrigin
from dagster._serdes import serialize_value, whitelist_for_serdes
from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey
from dagster_shared.serdes.serdes import ... | @whitelist_for_serdes(storage_name='PipelineSubsetSnapshotArgs', storage_field_names={'job_origin': 'pipeline_origin', 'op_selection': 'solid_selection'}, field_serializers={'asset_selection': SetToSequenceFieldSerializer})
class JobSubsetSnapshotArgs(NamedTuple('_JobSubsetSnapshotArgs', [('job_origin', RemoteJobOrigin... | 3 | 0 | 22 | 0 | 22 | 0 | 2 | 0 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 1 | 34 | 0 | 34 | 20 | 14 | 0 | 3 | 2 | 1 | 2 | 1 | 0 | 2 |
22,056 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.ListRepositoriesInput | from typing import AbstractSet, Any, NamedTuple, Optional
from dagster._serdes import serialize_value, whitelist_for_serdes
import dagster._check as check
@whitelist_for_serdes
class ListRepositoriesInput(NamedTuple('_ListRepositoriesInput', [('module_name', Optional[str]), ('python_file', Optional[str]), ('working_di... | @whitelist_for_serdes
class ListRepositoriesInput(NamedTuple('_ListRepositoriesInput', [('module_name', Optional[str]), ('python_file', Optional[str]), ('working_directory', Optional[str]), ('attribute', Optional[str])])):
def __new__(cls, module_name: Optional[str], python_file: Optional[str], working_directory: ... | 3 | 0 | 16 | 0 | 16 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 27 | 0 | 27 | 18 | 9 | 0 | 5 | 2 | 3 | 1 | 1 | 0 | 1 |
22,057 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.ListRepositoriesResponse | from dagster._core.code_pointer import CodePointer
from collections.abc import Mapping, Sequence
from dagster._serdes import serialize_value, whitelist_for_serdes
from dagster_shared.serdes.objects.models.defs_state_info import DefsStateInfo
import dagster._check as check
from typing import AbstractSet, Any, NamedTuple... | @whitelist_for_serdes
class ListRepositoriesResponse(NamedTuple('_ListRepositoriesResponse', [('repository_symbols', Sequence[LoadableRepositorySymbol]), ('executable_path', Optional[str]), ('repository_code_pointer_dict', Mapping[str, CodePointer]), ('entry_point', Optional[Sequence[str]]), ('container_image', Optiona... | 3 | 0 | 37 | 0 | 37 | 0 | 3 | 0 | 1 | 6 | 2 | 0 | 1 | 0 | 1 | 1 | 51 | 0 | 51 | 24 | 27 | 0 | 3 | 2 | 1 | 3 | 1 | 0 | 3 |
22,058 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.LoadableRepositorySymbol | from typing import AbstractSet, Any, NamedTuple, Optional
import dagster._check as check
from dagster._serdes import serialize_value, whitelist_for_serdes
@whitelist_for_serdes
class LoadableRepositorySymbol(NamedTuple('_LoadableRepositorySymbol', [('repository_name', str), ('attribute', str)])):
def __new__(cls,... | @whitelist_for_serdes
class LoadableRepositorySymbol(NamedTuple('_LoadableRepositorySymbol', [('repository_name', str), ('attribute', str)])):
def __new__(cls, repository_name: str, attribute: str):
pass | 3 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 9 | 0 | 9 | 4 | 5 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,059 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.NotebookPathArgs | from dagster._core.remote_origin import CodeLocationOrigin, RemoteJobOrigin, RemoteRepositoryOrigin
import dagster._check as check
from dagster._serdes import serialize_value, whitelist_for_serdes
from typing import AbstractSet, Any, NamedTuple, Optional
@whitelist_for_serdes(storage_field_names={'code_location_origin... | @whitelist_for_serdes(storage_field_names={'code_location_origin': 'repository_location_origin'})
class NotebookPathArgs(NamedTuple('_NotebookPathArgs', [('code_location_origin', CodeLocationOrigin), ('notebook_path', str)])):
def __new__(cls, code_location_origin: CodeLocationOrigin, notebook_path: str):
... | 3 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 14 | 0 | 14 | 7 | 7 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,060 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.PartitionArgs | from dagster._core.instance.ref import InstanceRef
from dagster._core.remote_origin import CodeLocationOrigin, RemoteJobOrigin, RemoteRepositoryOrigin
from typing import AbstractSet, Any, NamedTuple, Optional
import dagster._check as check
from dagster._serdes import serialize_value, whitelist_for_serdes
from dagster._... | @whitelist_for_serdes
class PartitionArgs(NamedTuple('_PartitionArgs', [('repository_origin', RemoteRepositoryOrigin), ('partition_set_name', str), ('partition_name', str), ('job_name', Optional[str]), ('instance_ref', Optional[InstanceRef])])):
def __new__(cls, repository_origin: RemoteRepositoryOrigin, partition... | 4 | 0 | 13 | 0 | 13 | 0 | 2 | 0.03 | 1 | 2 | 0 | 0 | 2 | 0 | 2 | 2 | 39 | 1 | 37 | 21 | 16 | 1 | 7 | 3 | 4 | 2 | 1 | 1 | 3 |
22,061 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.PartitionNamesArgs | from dagster._core.remote_representation.external_data import DEFAULT_MODE_NAME, job_name_for_partition_set_snap_name
from dagster._core.remote_origin import CodeLocationOrigin, RemoteJobOrigin, RemoteRepositoryOrigin
from typing import AbstractSet, Any, NamedTuple, Optional
import dagster._check as check
from dagster.... | @whitelist_for_serdes
class PartitionNamesArgs(NamedTuple('_PartitionNamesArgs', [('repository_origin', RemoteRepositoryOrigin), ('partition_set_name', str), ('job_name', Optional[str])])):
def __new__(cls, repository_origin: RemoteRepositoryOrigin, partition_set_name: str, job_name: Optional[str]=None):
p... | 4 | 0 | 10 | 0 | 10 | 0 | 2 | 0.17 | 1 | 2 | 0 | 0 | 2 | 0 | 2 | 2 | 35 | 1 | 29 | 17 | 12 | 5 | 7 | 3 | 4 | 2 | 1 | 1 | 3 |
22,062 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.PartitionSetExecutionParamArgs | from dagster._serdes import serialize_value, whitelist_for_serdes
from collections.abc import Mapping, Sequence
from typing import AbstractSet, Any, NamedTuple, Optional
import dagster._check as check
from dagster._core.remote_origin import CodeLocationOrigin, RemoteJobOrigin, RemoteRepositoryOrigin
from dagster._core.... | @whitelist_for_serdes
class PartitionSetExecutionParamArgs(NamedTuple('_PartitionSetExecutionParamArgs', [('repository_origin', RemoteRepositoryOrigin), ('partition_set_name', str), ('partition_names', Sequence[str]), ('instance_ref', Optional[InstanceRef])])):
def __new__(cls, repository_origin: RemoteRepositoryO... | 3 | 0 | 16 | 0 | 16 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 27 | 0 | 27 | 18 | 9 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,063 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.ResumeRunArgs | from dagster._core.origin import JobPythonOrigin, get_python_environment_entry_point
from dagster._core.instance.ref import InstanceRef
from typing import AbstractSet, Any, NamedTuple, Optional
import dagster._check as check
from collections.abc import Mapping, Sequence
from dagster._serdes import serialize_value, whit... | @whitelist_for_serdes(storage_field_names={'job_origin': 'pipeline_origin', 'run_id': 'pipeline_run_id'})
class ResumeRunArgs(NamedTuple('_ResumeRunArgs', [('job_origin', JobPythonOrigin), ('run_id', str), ('instance_ref', Optional[InstanceRef]), ('set_exit_code_on_failure', Optional[bool])])):
def __new__(cls, jo... | 4 | 0 | 15 | 0 | 15 | 1 | 2 | 0.05 | 1 | 5 | 1 | 0 | 2 | 0 | 2 | 2 | 43 | 1 | 41 | 19 | 22 | 2 | 5 | 3 | 2 | 2 | 1 | 0 | 3 |
22,064 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.SensorExecutionArgs | from typing import AbstractSet, Any, NamedTuple, Optional
from dagster._core.instance.ref import InstanceRef
from dagster._serdes import serialize_value, whitelist_for_serdes
from collections.abc import Mapping, Sequence
import dagster._check as check
from dagster._core.remote_origin import CodeLocationOrigin, RemoteJo... | @whitelist_for_serdes
class SensorExecutionArgs(NamedTuple('_SensorExecutionArgs', [('repository_origin', RemoteRepositoryOrigin), ('instance_ref', Optional[InstanceRef]), ('sensor_name', str), ('last_tick_completion_time', Optional[float]), ('last_run_key', Optional[str]), ('cursor', Optional[str]), ('log_key', Option... | 4 | 1 | 38 | 0 | 33 | 5 | 2 | 0.12 | 1 | 5 | 0 | 0 | 1 | 0 | 1 | 1 | 56 | 0 | 50 | 31 | 20 | 6 | 4 | 3 | 2 | 2 | 1 | 0 | 2 |
22,065 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.ShutdownServerResult | from typing import AbstractSet, Any, NamedTuple, Optional
import dagster._check as check
from dagster._utils.error import SerializableErrorInfo
from dagster._serdes import serialize_value, whitelist_for_serdes
@whitelist_for_serdes
class ShutdownServerResult(NamedTuple('_ShutdownServerResult', [('success', bool), ('se... | @whitelist_for_serdes
class ShutdownServerResult(NamedTuple('_ShutdownServerResult', [('success', bool), ('serializable_error_info', Optional[SerializableErrorInfo])])):
def __new__(cls, success: bool, serializable_error_info: Optional[SerializableErrorInfo]):
pass | 3 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 0 | 1 | 1 | 14 | 0 | 14 | 7 | 7 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,066 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_grpc/types.py | dagster._grpc.types.StartRunResult | import dagster._check as check
from typing import AbstractSet, Any, NamedTuple, Optional
from dagster._utils.error import SerializableErrorInfo
from dagster._serdes import serialize_value, whitelist_for_serdes
@whitelist_for_serdes
class StartRunResult(NamedTuple('_StartRunResult', [('success', bool), ('message', Opti... | @whitelist_for_serdes
class StartRunResult(NamedTuple('_StartRunResult', [('success', bool), ('message', Optional[str]), ('serializable_error_info', Optional[SerializableErrorInfo])])):
def __new__(cls, success: bool, message: Optional[str], serializable_error_info: Optional[SerializableErrorInfo]):
pass | 3 | 0 | 14 | 0 | 14 | 0 | 1 | 0 | 1 | 4 | 1 | 0 | 1 | 0 | 1 | 1 | 24 | 0 | 24 | 16 | 8 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,067 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_loggers/__init__.py | dagster._loggers.JsonLogFormatter | from dagster_shared import seven
from dagster._core.log_manager import LOG_RECORD_EVENT_ATTR, LOG_RECORD_METADATA_ATTR, DagsterLogRecordMetadata
from dagster._serdes import pack_value
import logging
class JsonLogFormatter(logging.Formatter):
def format(self, record):
dict_to_dump = {}
for k, v in ... |
class JsonLogFormatter(logging.Formatter):
def format(self, record):
pass | 2 | 0 | 17 | 1 | 14 | 2 | 4 | 0.13 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 8 | 18 | 1 | 15 | 6 | 13 | 2 | 11 | 6 | 9 | 4 | 2 | 2 | 4 |
22,068 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_module_alias_map.py | dagster._module_alias_map.AliasedModuleFinder | from importlib.machinery import ModuleSpec, PathFinder
import importlib
from typing import Optional, Union
from collections.abc import Mapping, Sequence
from types import ModuleType
from importlib.abc import Loader, MetaPathFinder
import importlib.util
class AliasedModuleFinder(MetaPathFinder):
def __init__(self,... |
class AliasedModuleFinder(MetaPathFinder):
def __init__(self, alias_map: Mapping[str, str]):
pass
def find_spec(self, fullname: str, _path: Optional[Sequence[Union[bytes, str]]]=None, _target: Optional[ModuleType]=None) -> Optional[ModuleSpec]:
pass | 3 | 0 | 11 | 0 | 11 | 0 | 2 | 0 | 1 | 6 | 1 | 0 | 2 | 1 | 2 | 24 | 23 | 1 | 22 | 12 | 14 | 0 | 11 | 7 | 8 | 2 | 4 | 1 | 3 |
22,069 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_module_alias_map.py | dagster._module_alias_map.AliasedModuleLoader | import importlib
import importlib.util
from importlib.machinery import ModuleSpec, PathFinder
from importlib.abc import Loader, MetaPathFinder
from types import ModuleType
import sys
class AliasedModuleLoader(Loader):
def __init__(self, alias: str, base_spec: ModuleSpec):
self.alias = alias
self.b... |
class AliasedModuleLoader(Loader):
def __init__(self, alias: str, base_spec: ModuleSpec):
pass
def exec_module(self, _module: ModuleType) -> None:
pass
def module_repr(self, module: ModuleType) -> str:
pass | 4 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 3 | 2 | 3 | 3 | 12 | 2 | 10 | 7 | 6 | 0 | 10 | 7 | 6 | 1 | 1 | 0 | 3 |
22,070 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_scheduler/scheduler.py | dagster._scheduler.scheduler.ScheduleIterationTimes | from dagster._core.remote_representation.external import RemoteJob, RemoteSchedule
from typing import TYPE_CHECKING, Callable, NamedTuple, Optional, Union, cast
from collections.abc import Generator, Mapping, Sequence
class ScheduleIterationTimes(NamedTuple):
"""Timestamp information returned by each scheduler ite... |
class ScheduleIterationTimes(NamedTuple):
'''Timestamp information returned by each scheduler iteration that the core scheduler
loop can use to intelligently schedule the next tick.
last_iteration_timestamp is used by subsequent evaluations of this schedule to ensure that we
don't accidentally create i... | 2 | 1 | 5 | 0 | 4 | 1 | 2 | 1.88 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 27 | 4 | 8 | 2 | 6 | 15 | 8 | 2 | 6 | 2 | 1 | 1 | 2 |
22,071 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_scheduler/scheduler.py | dagster._scheduler.scheduler.SubmitRunRequestResult | from typing import TYPE_CHECKING, Callable, NamedTuple, Optional, Union, cast
from dagster._utils.error import SerializableErrorInfo
from dagster._core.storage.dagster_run import DagsterRun, DagsterRunStatus, RunsFilter
class SubmitRunRequestResult(NamedTuple):
run_key: Optional[str]
error_info: Optional[Seria... |
class SubmitRunRequestResult(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 |
22,072 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_scheduler/scheduler.py | dagster._scheduler.scheduler._ScheduleLaunchContext | import logging
from typing_extensions import Self
from collections import defaultdict
from dagster._core.remote_representation.external import RemoteJob, RemoteSchedule
from dagster._core.scheduler.instigation import InstigatorState, InstigatorStatus, InstigatorTick, InstigatorType, ScheduleInstigatorData, TickData, Ti... |
class _ScheduleLaunchContext(AbstractContextManager):
def __init__(self, remote_schedule: RemoteSchedule, tick: InstigatorTick, instance: DagsterInstance, logger: logging.Logger, tick_retention_settings):
pass
@property
def failure_count(self) -> int:
pass
@property
def consecutive... | 16 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 9 | 2 | 0 | 11 | 5 | 11 | 34 | 74 | 13 | 61 | 31 | 38 | 0 | 41 | 20 | 29 | 4 | 5 | 2 | 17 |
22,073 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_serdes/config_class.py | dagster._serdes.config_class.ConfigurableClass | from abc import ABC, abstractmethod
from dagster._annotations import public
from typing import TYPE_CHECKING, Any, NamedTuple, Optional, TypeVar, Union, cast, overload
from collections.abc import Mapping
from typing_extensions import Self
@public
class ConfigurableClass(ABC):
"""Abstract mixin for classes that can... | @public
class ConfigurableClass(ABC):
'''Abstract mixin for classes that can be loaded from config.
This supports a powerful plugin pattern which avoids both a) a lengthy, hard-to-synchronize list
of conditional imports / optional extras_requires in dagster core and b) a magic directory or
file in which... | 11 | 4 | 15 | 3 | 2 | 9 | 1 | 3.36 | 1 | 5 | 1 | 48 | 1 | 0 | 3 | 23 | 82 | 21 | 14 | 9 | 2 | 47 | 6 | 4 | 2 | 1 | 4 | 0 | 3 |
22,074 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_serdes/config_class.py | dagster._serdes.config_class.ConfigurableClassData | from typing import TYPE_CHECKING, Any, NamedTuple, Optional, TypeVar, Union, cast, overload
from dagster_shared.serdes.serdes import NamedTupleSerializer, whitelist_for_serdes
from dagster_shared.yaml_utils import load_run_config_yaml
from dagster._utils import convert_dagster_submodule_name
from dagster._annotations i... | @whitelist_for_serdes(serializer=ConfigurableClassDataSerializer)
@public
class ConfigurableClassData(NamedTuple('_ConfigurableClassData', [('module_name', str), ('class_name', str), ('config_yaml', str)])):
'''Serializable tuple describing where to find a class and the config fragment that should
be used to in... | 12 | 1 | 10 | 1 | 9 | 1 | 2 | 0.17 | 1 | 8 | 2 | 0 | 6 | 1 | 6 | 6 | 86 | 11 | 64 | 28 | 43 | 11 | 29 | 13 | 20 | 5 | 1 | 1 | 10 |
22,075 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_serdes/config_class.py | dagster._serdes.config_class.ConfigurableClassDataSerializer | from dagster._utils import convert_dagster_submodule_name
from dagster_shared.serdes.serdes import NamedTupleSerializer, whitelist_for_serdes
class ConfigurableClassDataSerializer(NamedTupleSerializer['ConfigurableClassData']):
def pack_items(self, *args, **kwargs):
for k, v in super().pack_items(*args, *... |
class ConfigurableClassDataSerializer(NamedTupleSerializer['ConfigurableClassData']):
def pack_items(self, *args, **kwargs):
pass | 2 | 0 | 6 | 0 | 6 | 1 | 3 | 0.14 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 34 | 7 | 0 | 7 | 3 | 5 | 1 | 6 | 3 | 4 | 3 | 7 | 2 | 3 |
22,076 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/__init__.py | dagster._utils.Counter | from collections.abc import Generator, Iterable, Iterator, Mapping, Sequence
import threading
class Counter:
def __init__(self):
self._lock = threading.Lock()
self._counts = {}
super().__init__()
def increment(self, key: str) -> None:
with self._lock:
self._counts[... |
class Counter:
def __init__(self):
pass
def increment(self, key: str) -> None:
pass
def counts(self) -> Mapping[str, int]:
pass | 4 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 0 | 4 | 0 | 0 | 3 | 2 | 3 | 3 | 14 | 2 | 12 | 7 | 8 | 0 | 12 | 7 | 8 | 1 | 0 | 1 | 3 |
22,077 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/__init__.py | dagster._utils.EventGenerationManager | from collections.abc import Generator, Iterable, Iterator, Mapping, Sequence
from typing import TYPE_CHECKING, Any, Callable, ContextManager, Dict, Generic, List, NamedTuple, Optional, Set, Tuple, Type, TypeVar, Union, cast, overload
import dagster._check as check
class EventGenerationManager(Generic[T_GeneratedContex... |
class EventGenerationManager(Generic[T_GeneratedContext]):
'''Utility class that wraps an event generator function, that also yields a single instance of
a typed object. All events yielded before the typed object are yielded through the method
`generate_setup_events` and all events yielded after the typed... | 5 | 1 | 9 | 0 | 9 | 0 | 3 | 0.26 | 1 | 4 | 0 | 1 | 4 | 6 | 4 | 6 | 54 | 6 | 38 | 17 | 28 | 10 | 27 | 12 | 22 | 5 | 1 | 3 | 10 |
22,078 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/aiodataloader.py | dagster._utils.aiodataloader.BlockingDataLoader | from typing import Any, Callable, Generic, Optional, TypeVar, Union
from collections.abc import Coroutine, Iterable, Iterator, MutableMapping
class BlockingDataLoader(Generic[KeyT, ReturnT]):
"""Currently, the cache is not shared between blocking and non-blocking DataLoaders, as it is
challenging to drive the ... |
class BlockingDataLoader(Generic[KeyT, ReturnT]):
'''Currently, the cache is not shared between blocking and non-blocking DataLoaders, as it is
challenging to drive the event loop properly while managing a shared cache.
'''
def __init__(self, batch_load_fn: Callable[[Iterable[KeyT]], Iterable[ReturnT]... | 5 | 2 | 10 | 1 | 8 | 1 | 2 | 0.19 | 1 | 4 | 0 | 0 | 4 | 5 | 4 | 6 | 46 | 8 | 32 | 20 | 22 | 6 | 24 | 15 | 19 | 4 | 1 | 3 | 9 |
22,079 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/aiodataloader.py | dagster._utils.aiodataloader.DataLoader | from asyncio import AbstractEventLoop, Future, ensure_future, gather, get_event_loop, iscoroutine, iscoroutinefunction
from collections.abc import Coroutine, Iterable, Iterator, MutableMapping
from typing import Any, Callable, Generic, Optional, TypeVar, Union
class DataLoader(_BaseDataLoader[KeyT, ReturnT]):
batc... |
class DataLoader(_BaseDataLoader[KeyT, ReturnT]):
def __init__(self, batch_load_fn: Callable[[Iterable[KeyT]], Coroutine[Any, Any, Iterable[ReturnT]]], batch: Optional[bool]=None, max_batch_size: Optional[int]=None, cache: Optional[bool]=None, get_cache_key: Optional[Callable[[KeyT], Union[CacheKeyT, KeyT]]]=None... | 10 | 5 | 19 | 3 | 11 | 5 | 3 | 0.4 | 1 | 11 | 0 | 2 | 8 | 5 | 8 | 11 | 161 | 32 | 92 | 33 | 73 | 37 | 68 | 23 | 59 | 8 | 2 | 2 | 26 |
22,080 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/aiodataloader.py | dagster._utils.aiodataloader._BaseDataLoader | from collections.abc import Coroutine, Iterable, Iterator, MutableMapping
from typing import Any, Callable, Generic, Optional, TypeVar, Union
class _BaseDataLoader(Generic[KeyT, ReturnT]):
def __init__(self, batch_load_fn: Callable[[Iterable[KeyT]], Coroutine[Any, Any, Iterable[ReturnT]]], max_batch_size: Optiona... |
class _BaseDataLoader(Generic[KeyT, ReturnT]):
def __init__(self, batch_load_fn: Callable[[Iterable[KeyT]], Coroutine[Any, Any, Iterable[ReturnT]]], max_batch_size: Optional[int]=None):
pass | 2 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 4 | 0 | 1 | 1 | 1 | 1 | 3 | 7 | 0 | 7 | 7 | 1 | 0 | 3 | 3 | 1 | 1 | 1 | 0 | 1 |
22,081 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/caching_instance_queryer.py | dagster._utils.caching_instance_queryer.CachingInstanceQueryer | from dagster._core.storage.dagster_run import IN_PROGRESS_RUN_STATUSES, DagsterRun, DagsterRunStatus, RunRecord
from dagster._core.definitions.data_version import DataVersion, extract_data_version_from_entry
from dagster._core.instance import DagsterInstance, DynamicPartitionsStore
from dagster._core.definitions.assets... |
class CachingInstanceQueryer(DynamicPartitionsStore):
'''Provides utility functions for querying for asset-materialization related data from the
instance which will attempt to limit redundant expensive calls. Intended for use within the
scope of a single "request" (e.g. GQL request, sensor tick).
Args:... | 67 | 25 | 24 | 2 | 18 | 4 | 3 | 0.25 | 1 | 20 | 8 | 0 | 40 | 9 | 40 | 40 | 1,054 | 115 | 753 | 248 | 611 | 186 | 317 | 149 | 272 | 15 | 1 | 5 | 122 |
22,082 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/concurrency.py | dagster._utils.concurrency.ClaimedSlotInfo | from dagster._record import record
@record
class ClaimedSlotInfo:
run_id: str
step_key: str | @record
class ClaimedSlotInfo:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 0 | 0 | 0 |
22,083 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/concurrency.py | dagster._utils.concurrency.ConcurrencyClaimStatus | from typing import Optional
from dagster._record import record
from datetime import datetime
@record
class ConcurrencyClaimStatus:
concurrency_key: str
slot_status: ConcurrencySlotStatus
priority: Optional[int] = None
assigned_timestamp: Optional[datetime] = None
enqueued_timestamp: Optional[dateti... | @record
class ConcurrencyClaimStatus:
@property
def is_claimed(self):
pass
@property
def is_assigned(self):
pass
def with_slot_status(self, slot_status: ConcurrencySlotStatus):
pass
def with_sleep_interval(self, interval: float):
pass | 8 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 0 | 2 | 1 | 0 | 4 | 0 | 4 | 4 | 35 | 4 | 31 | 11 | 24 | 0 | 15 | 9 | 10 | 1 | 0 | 0 | 4 |
22,084 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/concurrency.py | dagster._utils.concurrency.ConcurrencyKeyInfo | from dagster._record import record
from typing import Optional
@record
class ConcurrencyKeyInfo:
concurrency_key: str
slot_count: int
claimed_slots: list[ClaimedSlotInfo]
pending_steps: list[PendingStepInfo]
limit: Optional[int] = None
using_default_limit: bool = False
@property
def ac... | @record
class ConcurrencyKeyInfo:
@property
def active_slot_count(self) -> int:
pass
@property
def active_run_ids(self) -> set[str]:
pass
@property
def pending_step_count(self) -> int:
pass
@property
def pending_run_ids(self) -> set[str]:
pass
@proper... | 14 | 0 | 3 | 0 | 2 | 0 | 1 | 0.22 | 0 | 3 | 0 | 0 | 6 | 0 | 6 | 6 | 39 | 6 | 27 | 15 | 14 | 6 | 19 | 9 | 12 | 1 | 0 | 0 | 6 |
22,085 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/concurrency.py | dagster._utils.concurrency.ConcurrencySlotStatus | from enum import Enum
class ConcurrencySlotStatus(Enum):
BLOCKED = 'BLOCKED'
CLAIMED = 'CLAIMED' |
class ConcurrencySlotStatus(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 |
22,086 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/concurrency.py | dagster._utils.concurrency.PendingStepInfo | from datetime import datetime
from typing import Optional
from dagster._record import record
@record
class PendingStepInfo:
run_id: str
step_key: str
enqueued_timestamp: datetime
assigned_timestamp: Optional[datetime]
priority: Optional[int] | @record
class PendingStepInfo:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 1 | 5 | 0 | 6 | 1 | 5 | 0 | 0 | 0 | 0 |
22,087 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/container.py | dagster._utils.container.CGroupVersion | from enum import Enum
class CGroupVersion(Enum):
V1 = 'V1'
V2 = 'V2' |
class CGroupVersion(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 |
22,088 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/container.py | dagster._utils.container.ContainerUtilizationMetrics | from typing import Optional, TypedDict
class ContainerUtilizationMetrics(TypedDict):
num_allocated_cores: Optional[int]
cpu_usage: Optional[float]
cpu_cfs_quota_us: Optional[float]
cpu_cfs_period_us: Optional[float]
memory_usage: Optional[float]
memory_limit: Optional[int]
measurement_times... |
class ContainerUtilizationMetrics(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.45 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 0 | 11 | 1 | 10 | 5 | 11 | 1 | 10 | 0 | 1 | 0 | 0 |
22,089 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/error.py | dagster._utils.error.DagsterRedactedUserCodeError | from dagster._core.errors import DagsterUserCodeExecutionError
class DagsterRedactedUserCodeError(DagsterUserCodeExecutionError):
pass |
class DagsterRedactedUserCodeError(DagsterUserCodeExecutionError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
22,090 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/forked_pdb.py | dagster._utils.forked_pdb.ForkedPdb | from typing import Optional
from dagster._annotations import public
import types
import sys
import pdb
@public
class ForkedPdb(pdb.Pdb):
"""A pdb subclass that may be used from a forked multiprocessing child.
**Examples**:
.. code-block:: python
from dagster._utils.forked_pdb import ForkedPdb
... | @public
class ForkedPdb(pdb.Pdb):
'''A pdb subclass that may be used from a forked multiprocessing child.
**Examples**:
.. code-block:: python
from dagster._utils.forked_pdb import ForkedPdb
@solid
def complex_solid(_):
# some complicated stuff
ForkedPdb().set... | 3 | 1 | 11 | 0 | 11 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 141 | 32 | 8 | 12 | 7 | 6 | 12 | 7 | 3 | 5 | 1 | 2 | 1 | 1 |
22,091 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/indenting_printer.py | dagster._utils.indenting_printer.IndentingPrinter | from textwrap import TextWrapper
from collections.abc import Iterator
from contextlib import contextmanager
import dagster._check as check
from typing import Any, Callable, Optional
class IndentingPrinter:
def __init__(self, indent_level: int=2, printer: Callable[..., Any]=print, current_indent: int=0, line_lengt... |
class IndentingPrinter:
def __init__(self, indent_level: int=2, printer: Callable[..., Any]=print, current_indent: int=0, line_length: int=LINE_LENGTH):
pass
def append(self, text: str) -> None:
pass
def line(self, text: str) -> None:
pass
def block(self, text: str, prefix: ... | 13 | 1 | 5 | 0 | 5 | 0 | 1 | 0.04 | 0 | 6 | 0 | 3 | 10 | 5 | 10 | 10 | 64 | 10 | 53 | 26 | 34 | 2 | 37 | 18 | 26 | 2 | 0 | 1 | 13 |
22,092 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/indenting_printer.py | dagster._utils.indenting_printer.IndentingStringIoPrinter | from io import StringIO
from typing_extensions import Self
from typing import Any, Callable, Optional
class IndentingStringIoPrinter(IndentingPrinter):
"""Subclass of IndentingPrinter wrapping a StringIO."""
def __init__(self, **kwargs: Any):
self.buffer = StringIO()
self.printer = lambda x: s... |
class IndentingStringIoPrinter(IndentingPrinter):
'''Subclass of IndentingPrinter wrapping a StringIO.'''
def __init__(self, **kwargs: Any):
pass
def __enter__(self) -> Self:
pass
def __exit__(self, _exception_type, _exception_value, _traceback) -> None:
pass
def read(se... | 5 | 2 | 3 | 0 | 3 | 0 | 1 | 0.18 | 1 | 3 | 0 | 0 | 4 | 2 | 4 | 14 | 17 | 4 | 11 | 7 | 6 | 2 | 11 | 7 | 6 | 1 | 1 | 0 | 4 |
22,093 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/internal_init.py | dagster._utils.internal_init.IHasInternalInit | from typing import Any
class IHasInternalInit:
"""Marker interface which indicates that this class has an dagster_internal_init method. All classes with this interface
are unit tested to ensure that the signature of their dagster_internal_init method matches the signature of their
__init__ method, and that... |
class IHasInternalInit:
'''Marker interface which indicates that this class has an dagster_internal_init method. All classes with this interface
are unit tested to ensure that the signature of their dagster_internal_init method matches the signature of their
__init__ method, and that dagster_internal_init ... | 3 | 2 | 7 | 0 | 4 | 3 | 1 | 1.17 | 0 | 3 | 0 | 8 | 0 | 0 | 1 | 1 | 14 | 1 | 6 | 3 | 3 | 7 | 3 | 2 | 1 | 1 | 0 | 0 | 1 |
22,094 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/log.py | dagster._utils.log.JsonFileHandler | import logging
import copy
import dagster._check as check
import dagster_shared.seven as seven
import logging.config
class JsonFileHandler(logging.Handler):
def __init__(self, json_path: str):
super().__init__()
self.json_path = check.str_param(json_path, 'json_path')
def emit(self, record: l... |
class JsonFileHandler(logging.Handler):
def __init__(self, json_path: str):
pass
def emit(self, record: logging.LogRecord) -> None:
pass | 3 | 0 | 16 | 3 | 10 | 4 | 2 | 0.35 | 1 | 4 | 0 | 0 | 2 | 1 | 2 | 22 | 33 | 6 | 20 | 10 | 16 | 7 | 19 | 8 | 15 | 3 | 3 | 2 | 4 |
22,095 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/log.py | dagster._utils.log.StructuredLoggerHandler | import dagster._check as check
import logging.config
import logging
class StructuredLoggerHandler(logging.Handler):
def __init__(self, callback: StructuredLoggerCallback):
super().__init__()
self.callback = check.is_callable(callback, 'callback')
def emit(self, record: logging.LogRecord) -> N... |
class StructuredLoggerHandler(logging.Handler):
def __init__(self, callback: StructuredLoggerCallback):
pass
def emit(self, record: logging.LogRecord) -> None:
pass | 3 | 0 | 9 | 0 | 9 | 1 | 2 | 0.11 | 1 | 5 | 1 | 0 | 2 | 1 | 2 | 22 | 20 | 1 | 18 | 5 | 15 | 2 | 10 | 4 | 7 | 2 | 3 | 1 | 3 |
22,096 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/log.py | dagster._utils.log.StructuredLoggerMessage | from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Optional, Union
from collections.abc import Mapping, Sequence
import logging.config
import dagster._check as check
import logging
from dagster._core.utils import coerce_valid_log_level
class StructuredLoggerMessage(NamedTuple('_StructuredLoggerMessage', [('n... |
class StructuredLoggerMessage(NamedTuple('_StructuredLoggerMessage', [('name', str), ('message', str), ('level', int), ('meta', Mapping[str, object]), ('record', logging.LogRecord)])):
def __new__(cls, name: str, message: str, level: int, meta: Mapping[str, object], record: logging.LogRecord):
pass | 2 | 0 | 16 | 0 | 16 | 0 | 1 | 0 | 1 | 6 | 0 | 0 | 1 | 0 | 1 | 1 | 28 | 0 | 28 | 20 | 8 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,097 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/schedules.py | dagster._utils.schedules.CroniterShim | import functools
from dagster._vendored.croniter import croniter as _croniter
class CroniterShim(_croniter):
"""Lightweight shim to enable caching certain values that may be calculated many times."""
@classmethod
@functools.lru_cache(maxsize=128)
def expand(cls, *args, **kwargs):
return super(... |
class CroniterShim(_croniter):
'''Lightweight shim to enable caching certain values that may be calculated many times.'''
@classmethod
@functools.lru_cache(maxsize=128)
def expand(cls, *args, **kwargs):
pass | 4 | 1 | 2 | 0 | 2 | 0 | 1 | 0.2 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 5 | 7 | 1 | 5 | 3 | 1 | 1 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,098 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/tags.py | dagster._utils.tags.TagConcurrencyLimitsCounter | from collections.abc import Mapping, Sequence
from collections import defaultdict
from dagster import _check as check
from typing import TYPE_CHECKING, Any, Optional, Union
class TagConcurrencyLimitsCounter:
"""Helper object that keeps track of when the tag concurrency limits are met."""
_key_limits: dict[str,... |
class TagConcurrencyLimitsCounter:
'''Helper object that keeps track of when the tag concurrency limits are met.'''
def __init__(self, tag_concurrency_limits: Sequence[Mapping[str, Any]], in_progress_tagged_items: Sequence[Union['DagsterRun', 'ExecutionStep']]):
pass
def is_blocked(self, item: Un... | 4 | 3 | 22 | 3 | 17 | 1 | 5 | 0.07 | 0 | 6 | 0 | 0 | 3 | 0 | 3 | 3 | 77 | 14 | 59 | 19 | 49 | 4 | 45 | 13 | 41 | 5 | 0 | 2 | 15 |
22,099 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_utils/timing.py | dagster._utils.timing.TimerResult | from typing import Optional
import dagster_shared.seven as seven
import dagster._check as check
class TimerResult:
start_time: float
end_time: Optional[float]
def __init__(self):
self.start_time = seven.time_fn()
self.end_time = None
@property
def seconds(self) -> float:
i... |
class TimerResult:
def __init__(self):
pass
@property
def seconds(self) -> float:
pass
@property
def millis(self) -> float:
pass | 6 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 | 0 | 3 | 3 | 17 | 3 | 14 | 6 | 8 | 0 | 12 | 4 | 8 | 2 | 0 | 1 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.