Hi, I want to create assets based on k8s job. I f...
# ask-community
y
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
Hi! Yes, graph-backed assets will be your best option if you want a lot of control over your computation.
y
Thank you! I understand!