From 9b04ff1371acab00fcc3a00eece76ebcd51d6d90 Mon Sep 17 00:00:00 2001 From: Tim Castillo Date: Thu, 12 Oct 2023 13:24:01 -0400 Subject: [PATCH] Fixing typos on the Resources section of the tutorial (#17161) #17134 --- docs/content/tutorial/connecting-to-external-services.mdx | 4 ++-- .../docs_snippets/tutorial/connecting/connecting.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/content/tutorial/connecting-to-external-services.mdx b/docs/content/tutorial/connecting-to-external-services.mdx index 62ab63244afe3..7151a982f3d39 100644 --- a/docs/content/tutorial/connecting-to-external-services.mdx +++ b/docs/content/tutorial/connecting-to-external-services.mdx @@ -56,11 +56,11 @@ from .resources import DataGeneratorResource datagen = DataGeneratorResource() # Make the resource defs = Definitions( - assets=[*hackernews_assets], + assets=[*all_assets], schedules=[hackernews_schedule], resources={ "io_manager": io_manager, - "database_io_manager": duckdb_io_manager, + "database_io_manager": database_io_manager, "hackernews_api": datagen, # Add the newly-made resource here }, ) diff --git a/examples/docs_snippets/docs_snippets/tutorial/connecting/connecting.py b/examples/docs_snippets/docs_snippets/tutorial/connecting/connecting.py index 9722688a946c9..666bb77ab002a 100644 --- a/examples/docs_snippets/docs_snippets/tutorial/connecting/connecting.py +++ b/examples/docs_snippets/docs_snippets/tutorial/connecting/connecting.py @@ -15,7 +15,7 @@ def foo_asset(): return 1 -hackernews_assets = [foo_asset] +all_assets = [foo_asset] job = define_asset_job( name="hackernews_top_stories_job", selection=AssetSelection.all(), @@ -27,7 +27,7 @@ def foo_asset(): ) io_manager = fs_io_manager.configured({"base_dir": "/tmp/dagster"}) -duckdb_io_manager = fs_io_manager.configured({"base_dir": "/tmp/dagster"}) +database_io_manager = fs_io_manager.configured({"base_dir": "/tmp/dagster"}) # start_add_resource from .resources import DataGeneratorResource @@ -37,11 +37,11 @@ def foo_asset(): datagen = DataGeneratorResource() # Make the resource defs = Definitions( - assets=[*hackernews_assets], + assets=[*all_assets], schedules=[hackernews_schedule], resources={ "io_manager": io_manager, - "database_io_manager": duckdb_io_manager, + "database_io_manager": database_io_manager, "hackernews_api": datagen, # Add the newly-made resource here }, )