Skip to content

Commit

Permalink
Fixing typos on the Resources section of the tutorial (#17161)
Browse files Browse the repository at this point in the history
  • Loading branch information
tacastillo authored Oct 12, 2023
1 parent 1f0f9cf commit 9b04ff1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/content/tutorial/connecting-to-external-services.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand 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
Expand All @@ -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
},
)
Expand Down

1 comment on commit 9b04ff1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for dagster-docs ready!

✅ Preview
https://dagster-docs-gxaaamwtj-elementl.vercel.app
https://master.dagster.dagster-docs.io

Built with commit 9b04ff1.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.