Skip to content

How to migrate from using SourceAsset to AssetSpec #24005

Answered by HynekBlaha
ShootingStarD asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @ShootingStarD, have you tried steps mentioned in migration docs?

# before
from dagster import SourceAsset
my_asset = SourceAsset("my_asset", io_manager_key="abc")

# after
from dagster import AssetSpec
my_asset = AssetSpec("my_asset", metadata={"dagster/io_manager_key": "abc"})

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ShootingStarD
Comment options

@zaneselvans
Comment options

@deepyaman
Comment options

Answer selected by garethbrickman
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area: asset Related to Software-Defined Assets
4 participants
Converted from issue

This discussion was converted from issue #23849 on August 28, 2024 14:16.