Michel Rouly
07/12/2021, 12:23 PMversioned_filesystem_io_manager
, my Solid has a version property defined, but I'm consistently seeing:
dagster.check.ParameterCheckError: Param "context.version" is not a str. Got None which is type <class 'NoneType'>.
from dagster import repository, solid, pipeline, ModeDefinition
from dagster.core.storage.memoizable_io_manager import versioned_filesystem_io_manager
@solid(version="v0")
def test_solid() -> str:
return "hello versioned world"
test_mode = ModeDefinition("test_mode", resource_defs={"io_manager": versioned_filesystem_io_manager})
@pipeline(mode_defs=[test_mode])
def test_pipeline():
test_solid()
@repository()
def test_repo():
return [test_pipeline]
chris
07/12/2021, 2:34 PMMEMOIZED_RUN_TAG
on your pipeline in order to use the memoizable IO manager.
from dagster.core.storage.tags import MEMOIZED_RUN_TAG
@pipeline(
mode_defs=[
ModeDefinition("memoized", resource_defs={"io_manager": versioned_filesystem_io_manager}),
],
tags={MEMOIZED_RUN_TAG: "true"},
)
def my_pipeline():
return emit_sentence(emit_dog(), emit_tree())
Michel Rouly
07/12/2021, 2:34 PMchris
07/12/2021, 2:34 PMMichel Rouly
07/12/2021, 2:35 PMchris
07/12/2021, 2:35 PMMichel Rouly
07/12/2021, 2:50 PM@pipeline(mode_defs=[test_mode], tags={"MEMOIZED_RUN_TAG": "true"})
def test_pipeline():
test_solid()
Still seeing the same failure.chris
07/12/2021, 2:52 PMMichel Rouly
07/12/2021, 2:53 PMNote that memoized execution is not yet supported from Dagit.
Tag "dagster/is_memoized_run" was found when initializing pipeline run, however, memoized execution is only supported from the dagster CLI. This pipeline will run, but outputs from previous executions will be ignored. In order to execute this pipeline using memoization, provide the "dagster/is_memoized_run" tag to the `dagster pipeline execute` CLI. The CLI is documented at the provided link.
Ah well.chris
07/12/2021, 3:48 PM