[Core feature] Improved error message with maptasks: using it within a task should error out #3509
Open
2 tasks done
Labels
enhancement
New feature or request
flytekit
FlyteKit Python related issue
good first issue
Good for newcomers
improve-error-message
UX
Issues that require UX-Design
Motivation: Why do you think this is important?
Flytekit should raise a runtime error when map tasks are written in any of the following contexts:
map_task
within atask
function bodymap_task
at the module-level scopeor
Goal: What should the final outcome look like, ideally?
The error should make it clear that
map_task
s can only be defined in workflow function bodies.Describe alternatives you've considered
NA
Propose: Link/Inline OR Additional context
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: