Alec Koumjian
07/11/2023, 3:45 AMdefine_asset_job
and using assigning the "dagster-k8s/config"
tag to specify the necessary container_config
/ pod_spec_config
in order to mount the volume.
I'd like to use AutoMaterialization for this graph. How can I set the asset to use the correct tags
? op_tags
doesn't appear to operate at that level, unless I'm mistaken.Alec Koumjian
07/11/2023, 2:39 PMk8s_job_executor
for the entire code location, then it appears to work, which is encouraging. Is this an unintended workaround?
More generally, is there a reason that executors cannot be defined at the asset
level, when they are able to be defined at the job
and op
level? Using job
doesn't seem to really be appropriate, since all of the sensor, freshness policy, and auto-materialization features operate at the asset
level.chris
07/11/2023, 5:05 PMchris
07/11/2023, 5:05 PMAlec Koumjian
07/11/2023, 5:09 PMk8s_job_executor
. While I dislike the overhead of spinning up the containers, this let's me avoid having to define jobs, sensors, and schedules and instead use auto-materialization and op_tags
in order to specify pod resource requirements at the asset level.Philippe Laflamme
07/11/2023, 5:14 PMmultiprocess
executor unless at least one step has a custom tag on it that picks the k8s
executor. It’s still for the whole run, but this at least allows having the normal case not pay the extra cost of the exceptional cases (launching k8s jobs per step).
The file is Alec Koumjian
07/11/2023, 5:16 PMPhilippe Laflamme
07/11/2023, 5:20 PM@asset
should be materialized in a declarative way using freshness policies and auto-materialization. This is great and avoids the need to think about ops and jobs entirely. But when you want to specify how the asset should be materialized, then you’re forced to declare this elsewhere which is unfortunate.Alec Koumjian
07/12/2023, 3:17 PMop_tags
with the k8s executor is really nice since I can declare cpu/ram/disk individual assets need.