cuddly-jelly-27016
05/24/2025, 12:09 AMLast error: UNKNOWN::Outputs not generated by task execution
### Expected behavior
we are trying basic map_task function to understand more on that. However basic python programming is giving this unknown error. However this is working very well in local.
### Additional context to reproduce
from typing import List
from flytekit import experimental, task, workflow
@task
def a_mappable_task(a: int) -> str:
try:
inc = a + 2
print(inc)
return str(inc)
except Exception as e:
print(e)
@workflow
def my_map_workflow(a: List[int]) -> List[str]:
try:
mapped_out = experimental.map_task(a_mappable_task)(a=a)
return mapped_out
except Exception as e:
print(e)
if __name__ == "__main__":
result = my_map_workflow(a=[2,3,4,5])
print(f"{result}")
We use python 3.9 and also have below dependency in requirements.in. So we are building image pushing to AWS ECR and then using this image to register our workflows.
flytekit==1.9.1
flytekitplugins-papermill==1.9.1
hvac==1.0.2
pytz==2022.6
pandas==1.2.2
numpy==1.20.1
ldap3==2.9.1
dataclasses-json<0.5.12
### Screenshots
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flytecuddly-jelly-27016
05/24/2025, 12:09 AM