https://dagster.io/ logo
#ask-community
Title
# ask-community
r

Rasmus Hallén

05/20/2022, 9:50 AM
Copy code
usm_request = SourceAsset(key=AssetKey("usm_request"))
@asset
def test_asset(
        usm_request
    ):
    return usm_request

test_materializer = build_assets_job(
    name="test_materializer",
    description="Do cool things",
    assets = [test_asset],
    source_assets=[usm_request]
)
Trying to do the above, but getting error:
dagster.core.errors.DagsterInvariantViolationError: Attempting to access asset_key, but it was not provided when constructing the OutputContext
🤖 1
source assets not supposed to be used in jobs like this?
After 0.14.16, when doing materialization (or launch request) in dagit im getting :
Copy code
Operation name: LaunchPipelineExecution

Message: Runtime Object type "InvalidSubsetError" is not a possible type for "LaunchRunResult".

Path: 

Locations: [{"line":2,"column":3}]
s

sandy

05/24/2022, 2:44 PM
that first error should have been fixed in our latest release. sorry for the bug!
4 Views