Simrun Basuita
05/15/2023, 5:29 PMdagster._core.errors.DagsterExecutionLoadInputError: Error occurred while loading input "company_returns" of step "archetype_returns":
File "/venvs/893b35886e6f/lib/python3.10/site-packages/dagster/_core/execution/plan/execute_plan.py", line 262, in dagster_event_sequence_for_step
for step_event in check.generator(step_events):
File "/venvs/893b35886e6f/lib/python3.10/site-packages/dagster/_core/execution/plan/execute_step.py", line 335, in core_dagster_event_sequence_for_step
for event_or_input_value in step_input.source.load_input_object(step_context, input_def):
File "/venvs/893b35886e6f/lib/python3.10/site-packages/dagster/_core/execution/plan/inputs.py", line 187, in load_input_object
yield from _load_input_with_input_manager(loader, load_input_context)
File "/venvs/893b35886e6f/lib/python3.10/site-packages/dagster/_core/execution/plan/inputs.py", line 797, in _load_input_with_input_manager
with op_execution_error_boundary(
File "/usr/local/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "/venvs/893b35886e6f/lib/python3.10/site-packages/dagster/_core/execution/plan/utils.py", line 84, in op_execution_error_boundary
raise error_cls(
The above exception was caused by the following exception:
dagster._check.CheckError: Failure condition: Tried to access partition key for asset 'AssetKey(['company_returns'])', but the number of input partitions != 1: 'DefaultPartitionsSubset(subset={'DT55', 'DT30', 'DT60', 'DT45', 'DT25', 'DT40', 'DT50', 'DT15', 'DT10', 'DT35', 'DT20'}, partitions_def='DT10', 'DT15', 'DT20', 'DT25', 'DT30', 'DT35', 'DT40', 'DT45', 'DT50', 'DT55', 'DT60')'.
File "/venvs/893b35886e6f/lib/python3.10/site-packages/dagster/_core/execution/plan/utils.py", line 54, in op_execution_error_boundary
yield
File "/venvs/893b35886e6f/lib/python3.10/site-packages/dagster/_core/execution/plan/inputs.py", line 804, in _load_input_with_input_manager
value = input_manager.load_input(context)
File "/venvs/893b35886e6f/lib/python3.10/site-packages/dagster_cloud/serverless/io_manager.py", line 87, in load_input
key = self._get_path(context)
File "/venvs/893b35886e6f/lib/python3.10/site-packages/dagster_cloud/serverless/io_manager.py", line 52, in _get_path
path = context.get_asset_identifier()
File "/venvs/893b35886e6f/lib/python3.10/site-packages/dagster/_core/execution/context/input.py", line 453, in get_asset_identifier
return [*self.asset_key.path, self.asset_partition_key]
File "/venvs/893b35886e6f/lib/python3.10/site-packages/dagster/_core/execution/context/input.py", line 341, in asset_partition_key
check.failed(
File "/venvs/893b35886e6f/lib/python3.10/site-packages/dagster/_check/__init__.py", line 1669, in failed
raise CheckError(f"Failure condition: {desc}")
company_returns
is a static partitioned asset. archetype_returns
is not partitioned.claire
05/15/2023, 5:54 PMSimrun Basuita
05/15/2023, 5:54 PMclaire
05/15/2023, 6:02 PMfs_io_manager
with the serverless IO manager which can't handle loading multiple inputs. I think you'll need to explicitly define another IO manager that can handle these interactions i.e. the s3_pickle_io_manager
Simrun Basuita
05/15/2023, 6:02 PMclaire
05/15/2023, 6:18 PMserverless_io_manager
used in serverless. It doesn't yet handle loading from multiple input partitions, which is why you're seeing this error. I'd recommend filing an issue to fix this.
In the meantime, I would recommend that you explicitly define another IO manager to use.Simrun Basuita
05/15/2023, 6:18 PMfs_io_manager
in serverless? It gets replaced with serverless_io_manager
right?claire
05/15/2023, 6:23 PMfs_io_manager
in serverless because there is no explicit file directory to persist outputs to, it would have to be an IO manager that writes to cloud storage i.e. s3, gcs, snowflake, etc.Simrun Basuita
05/15/2023, 6:23 PM