Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Extract _get_op_def_compute_fn into wrap_source_asset_observe…
…_fn_in_op_compute_fn (#16618)" (#16688) ## Summary & Motivation This caused bugs caught in manual testing: ``` Could not load location dagster_test.toys.repo to check for sensors due to the following error: TypeError: 'staticmethod' object is not callable Stack Trace: File "/Users/johann/dagster/python_modules/dagster/dagster/_grpc/server.py", line 295, in __init__ self._loaded_repositories: Optional[LoadedRepositories] = LoadedRepositories( File "/Users/johann/dagster/python_modules/dagster/dagster/_grpc/server.py", line 139, in __init__ loadable_targets = get_loadable_targets( File "/Users/johann/dagster/python_modules/dagster/dagster/_grpc/utils.py", line 47, in get_loadable_targets else loadable_targets_from_python_module(module_name, working_directory) File "/Users/johann/dagster/python_modules/dagster/dagster/_core/workspace/autodiscovery.py", line 35, in loadable_targets_from_python_module module = load_python_module( File "/Users/johann/dagster/python_modules/dagster/dagster/_core/code_pointer.py", line 135, in load_python_module return importlib.import_module(module_name) File "/Users/johann/.pyenv/versions/3.9.10/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/Users/johann/dagster/python_modules/dagster-test/dagster_test/toys/repo.py", line 201, in <module> def data_versions_repository(): File "/Users/johann/dagster/python_modules/dagster/dagster/_core/definitions/decorators/repository_decorator.py", line 405, in repository return _Repository()(definitions_fn) File "/Users/johann/dagster/python_modules/dagster/dagster/_core/definitions/decorators/repository_decorator.py", line 161, in __call__ else CachingRepositoryData.from_list( File "/Users/johann/dagster/python_modules/dagster/dagster/_core/definitions/repository_definition/repository_data.py", line 346, in from_list return build_caching_repository_data_from_list( File "/Users/johann/dagster/python_modules/dagster/dagster/_core/definitions/repository_definition/repository_data_builder.py", line 195, in build_caching_repository_data_from_list for job_def in get_base_asset_jobs( File "/Users/johann/dagster/python_modules/dagster/dagster/_core/definitions/assets_job.py", line 76, in get_base_asset_jobs for observable in [sa for sa in source_assets if sa.is_observable]: File "/Users/johann/dagster/python_modules/dagster/dagster/_core/definitions/assets_job.py", line 76, in <listcomp> for observable in [sa for sa in source_assets if sa.is_observable]: File "/Users/johann/dagster/python_modules/dagster/dagster/_core/definitions/source_asset.py", line 256, in is_observable return self.node_def is not None File "/Users/johann/dagster/python_modules/dagster/dagster/_core/definitions/source_asset.py", line 270, in node_def compute_fn=wrap_source_asset_observe_fn_in_op_compute_fn(self), ``` Reverting for now ## How I Tested These Changes BK
- Loading branch information