Hi all - what is the best way to define a job that...
# ask-community
s
Hi all - what is the best way to define a job that includes both ops and assets? Is that even possible?
d
s
It sounds like this currently isn’t possible - what would be the best way to put in a request for this feature to be added?
y
please feel free to file a feature request issue on github
c
It's possible, just use
AssetsDefinition.from_op()
to specify which op, the input, and the output, e.g.
Copy code
asset_x= AssetsDefinition.from_op(
    your_op,
    keys_by_input_name={"df": AssetKey("input_df")},
    keys_by_output_name={"result": AssetKey("output_df")}
)