schrockn
12/16/2022, 6:54 PM@repository
to Definitions
. Again to reiterate, there is no need to migrate at the present time. However I do know that many of your are accountable to stakeholders that you need to onboard onto Dagster, and we think this smooths the way. And it will be front-and-center in our documentation and content, so migration will make your code more in line with that.Stephen Bailey
12/16/2022, 8:54 PMresources
changes things. If I only ever define one snowflake
resource for my code location, can I stop defining it in my assets? For example, will this work like I expect?
from dagster import asset, Definitions
from my_repo.resource_utils import configured_snowflake_resource, configured_datadog_resource
@asset(required_resource_keys={"snowflake", "datadog"})
def foo():
return "bar"
def = Definitions(
assets=[foo],
resources={"snowflake": configured_snowflake_resource, "datadog": configured_datadog_resource}
)
Currently, I have been adding the following in all my asset definitions:
resource_defs={"snowflake": configured_snowflake_resource, "datadog": configured_datadog_resource}
Do I no longer need to do that, and should I simply declare required resource keys?schrockn
12/16/2022, 9:33 PMKulanjith Deelaka
12/29/2022, 7:06 AMDefinitions
?