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

Yamamoto Hironori

06/10/2023, 1:35 PM
Hi, I want to create assets based on k8s job. I found
k8s_job_op
to run a k8s job as
op
, but I want to use it as a asset. One way is calling k8s client to run job and wait the status in an asset function, but I want to know more easily way based on dagster feature https://docs.dagster.io/_apidocs/libraries/dagster-k8s#ops
I found graph-backed-assets, is this a possible solution? • create a op to run k8s job • decorate the ops by @graph_asset https://docs.dagster.io/concepts/assets/graph-backed-assets#defining-graph-backed-assets
I also found
execute_k8s_job
, this will be a solution.
t

Tim Castillo

06/12/2023, 4:47 PM
Hi! Yes, graph-backed assets will be your best option if you want a lot of control over your computation.
y

Yamamoto Hironori

06/15/2023, 11:39 AM
Thank you! I understand!
5 Views