diff --git a/python_modules/dagster/dagster/_core/execution/context/compute.py b/python_modules/dagster/dagster/_core/execution/context/compute.py index d425da5330c80..2cce65e34b43f 100644 --- a/python_modules/dagster/dagster/_core/execution/context/compute.py +++ b/python_modules/dagster/dagster/_core/execution/context/compute.py @@ -1365,14 +1365,17 @@ def get() -> "OpExecutionContext": return ctx.op_execution_context +############################### +######## AssetExecutionContext +############################### + + def _copy_docs_from_op_execution_context(obj: T_Annotatable) -> T_Annotatable: target = _get_annotation_target(obj) if isfunction(target): setattr(target, "__doc__", getattr(OpExecutionContext, target.__name__).__doc__) return obj -############################### -######## AssetExecutionContext -############################### + ALTERNATE_METHODS = { "run_id": "run_properties.run_id", @@ -1490,7 +1493,6 @@ def run_config(self) -> Mapping[str, object]: def retry_number(self): return self.op_execution_context.retry_number - ########## pass-through to op context @public