-
I moved a number of assets from one code location to another. Is it possible to move the asset materialization history as well? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
As long as an asset has the same asset key, it's materialization history should be unaffected by what code location it's in. I.e. you shouldn't need to take any additional actions to migrate an asset's materialization history between code locations, if the asset's key doesn't change. |
Beta Was this translation helpful? Give feedback.
-
Note that although asset history might remain intact during a migration, you may need to copy files depending on the IO manager each asset is using. Illustrative ExampleFor example, we are using the GCSPickleIOManager where each code location writes to a different GCS location: # old code location
defs = Definitions(
...
resources={
"io_manager": GCSPickleIOManager(
gcs=gcs_resource,
gcs_bucket="dagster-assets-gcs-bucket",
gcs_prefix="old-code-location",
)
}
)
# new code location
defs = Definitions(
...
resources={
"io_manager": GCSPickleIOManager(
gcs=gcs_resource,
gcs_bucket="dagster-assets-gcs-bucket",
gcs_prefix="new-code-location",
)
}
) This requires users to copy |
Beta Was this translation helpful? Give feedback.
As long as an asset has the same asset key, it's materialization history should be unaffected by what code location it's in. I.e. you shouldn't need to take any additional actions to migrate an asset's materialization history between code locations, if the asset's key doesn't change.