Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] add brief storage kind docs #22328

Merged
merged 2 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified docs/content/api/modules.json.gz
Binary file not shown.
Binary file modified docs/content/api/searchindex.json.gz
Binary file not shown.
Binary file modified docs/content/api/sections.json.gz
Binary file not shown.
18 changes: 18 additions & 0 deletions docs/content/concepts/metadata-tags/tags.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,24 @@ def leads(): ...

Other APIs that define assets can also accept tag arguments, such as <PyObject object="AssetSpec" />, <PyObject object="AssetOut" />, <PyObject object="AssetOut" />, and <PyObject object="graph_asset" decorator />.

#### Storage kind tags

You can attach the `dagster/storage_kind` tag to an asset to specify the storage technology used to store the asset. For example, `s3` or `snowflake`.

```python file=/concepts/metadata-tags/tags.py startafter=start_asset_storage_kind_tag endbefore=end_asset_storage_kind_tag
@asset(tags={"dagster/storage_kind": "snowflake"})
def users(): ...
```

These tags will appear in the asset graph and can be used to filter assets in the Dagster UI:

<Image
alt="An asset with a storage kind tag in the Dagster UI"
src="/images/concepts/metadata-tags/storage-kind-tag.png"
width={758}
height={303}
/>

### Jobs

Adding tags to a job will attach them to every run executed by the job.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/next/public/objects.inv
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ def leads(): ...

# end_asset_tags


# start_asset_storage_kind_tag


@asset(tags={"dagster/storage_kind": "snowflake"})
def users(): ...


# end_asset_storage_kind_tag

# start_asset_job_tags

asset_job = define_asset_job(
Expand Down