[BUG] `map_task` will not display multiple outputs on the console
- Dominant language
- Go
- Stars
- 7.5k
- Forks
- 886
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 120
Description
### Describe the bug
When running a map_task on the remote, the UI will only show the first output instead of a list of outputs.
For instance, I have this code:
```
# maptask.py
from flytekit import task, map_task
@task
def t1(a: int) -> int:
return a + 1
map_t1 = map_task(t1)
```
and execute it locally:
```
❯ pyflyte run maptask.py map_t1 --a "[1,2,3]"
Running Execution on local.
[2, 3, 4]
```
which is correct. However, if I execute it remotely:
```
❯ pyflyte run --remote maptask.py map_t1 --a "[1,2,3]"
Running Execution on Remote.
[✔] Go to http://localhost:30080/console/projects/flytesnacks/domains/development/executions/fb18a3eecda214f79ba6 to see execution in the console.
```
The console will only show one output (Screenshot is provided below).
### Expected behavior
The console should display a list of outputs corresponding to each input.
### Additional context to reproduce
_No response_
### Screenshots
Input:
Output:
### Are you sure this issue hasn't been raised already?
- [X] Yes
### Have you read the Code of Conduct?
- [X] Yes
Contributor guide
Assessment
This issue has not been assessed yet.