Jayanth S N
01/11/2024, 12:48 AMLast error: UNKNOWN::Outputs not generated by task execution (edited)
We also tried the experimental.map_task also, but the issue remained same.
from typing import List
from flytekit import map_task, task, workflow
@task
def a_mappable_task(a: int) -> str:
inc = a + 2
print(inc)
return str(inc)
@workflow
def my_map_workflow(a: List[int]) -> List[str]:
mapped_out = map_task(a_mappable_task)(a=a)
return mapped_out
if __name__ == "__main__":
result = my_map_workflow(a=[2,3,4,5])
print(f"{result}")
this is the simple code snippet, we are using to test. When we look into logs we are only able to see the first iterated item. In this case, its 2 and in log the print shows 4 as its incremented and next whole workflow fails with the above error.
Could someone please assist us in determining what we may have overlooked in configuration that is creating this issue?Ketan (kumare3)
Ketan (kumare3)
Ketan (kumare3)
Jayanth S N
01/11/2024, 6:09 AMSamhita Alla
kubectl get pods -n flyte
?Ketan (kumare3)