Hi Team, how can I test config inside the task de...
# flyte-support
a
Hi Team, how can I test config inside the task decorator like container image, resources(cpu, memory) etc. from flytekit import task from flytekitplugins.pod import Pod from kubernetes.client.models import V1PodSpec, V1Container, V1ResourceRequirements # Define the task with a pod spec @task( task_config=Pod( pod_spec=V1PodSpec( containers=[ V1Container( name="primary", image="my-repo/my-custom-image:latest", resources=V1ResourceRequirements( requests={"cpu": "1", "memory": "500Mi"}, limits={"cpu": "2", "memory": "1Gi"}, ), ), ], ), ), ) def my_task() -> str: return "hello world"