rough-rose-81585
03/01/2023, 4:58 PMtask_config=Pod()
as we needed to customize some of the k8s spec. Usually for simpler tasks we set requests
and limits
for the task
decorator
It seems like the way we should be setting these values may have changed based on this? I’m reviewing this documentation nowhallowed-mouse-14616
03/01/2023, 5:01 PMPodTask
should still be fully supported. We implemented the new PodTemplate
to allow finer-grained configuration accross task types - for example ContainerTask
. This is supposed to be fully backwards compatible, if it's not, it is a problem. Can you provide an example that reproduces this issue?rough-rose-81585
03/01/2023, 5:07 PMrough-rose-81585
03/01/2023, 7:21 PMhallowed-mouse-14616
03/01/2023, 7:26 PMhallowed-mouse-14616
03/01/2023, 7:29 PMPodTemplate
in the task decorator which can also support ContainerTask
in addition to different plugins (ex. Dask, Ray, etc). Ultimately, this will achieve the same thing as the task_config=Pod
(ie. PodTask
) that you're currently using, but will apply to more task types offering more configurability.gifted-train-81198
04/11/2023, 1:08 PMpod_template
for ContainerTask
but the labels doesn't reflect. I have tried flytekit==1.4.2
and task def looks like below, Can you suggest if I am missing something here :
calculate_ellipse_area_shell = ContainerTask(
name="ellipse-area-metadata-shell",
input_data_dir="/var/inputs",
output_data_dir="/var/outputs",
inputs=kwtypes(a=float, b=float),
outputs=kwtypes(area=float, metadata=str),
image="<http://ghcr.io/flyteorg/rawcontainers-shell:v2|ghcr.io/flyteorg/rawcontainers-shell:v2>",
command=[
"./calculate-ellipse-area.sh",
"{{.inputs.a}}",
"{{.inputs.b}}",
"/var/outputs",
],
pod_template=PodTemplate(labels=labels),
)
hallowed-mouse-14616
04/12/2023, 8:59 AM