https://dagster.io/ logo
Title
c

Casper Weiss Bang

11/24/2022, 11:27 AM
Also is it possible to call an Op from an asset?
v

Vinnie

11/24/2022, 12:07 PM
Oversimplification, but an asset is an op, so you can’t. What you can do is setup a graph-based asset if you’re chaining ops https://docs.dagster.io/concepts/assets/graph-backed-assets
c

Casper Weiss Bang

11/24/2022, 12:18 PM
@Vinnie yeah i am sadly aware of the asset-in-an-ops - It might be any XY problem - I'm trying to have a databricks job presented as an Asset, as assets give me better lineage etc than jobs
v

Vinnie

11/24/2022, 12:25 PM
Are there any limitations to using the graph method for you? That’s how I setup most of my workflows and always found workarounds for the limitations.
s

Stefano

02/05/2023, 8:14 PM
Hi! Sorry for jumping in this thread but I have a question related to this topic. As far as I can tell, the main limitation for using the graph backed asset method is that I cannot use my IO Manager to save the asset generated on my database. Is this the case or I'm just missing the docs how-to-do-it?
v

Vinnie

02/08/2023, 10:10 AM
@Stefano You can specify the IO manager on the final
@op
in the graph.
@op(out=(any, io_manager_key="my_cool_io_manager"))
def my_op():
    return "such a cool op"