<#6510 [pre and post execute support in Map Tasks]...
# flyte-github
c
#6510 [pre and post execute support in Map Tasks] Issue created by berriperri ### Motivation: Why do you think this is important? Map task do not support the pre execute and post execute implementation of the mapped task. This is natural to expect when a task needs some setup and teardown procedures. ### Goal: What should the final outcome look like, ideally? solution could be as simple as
Copy code
def pre_execute(self, user_params: Optional[ExecutionParameters]) -> Optional[ExecutionParameters]:  # type: ignore
        return self._run_task.pre_execute(user_params=user_params)

    def post_execute(self, user_params: Optional[ExecutionParameters], rval: Any) -> Any:
        return self._run_task.post_execute(user_params=user_params, rval=rval)
### Describe alternatives you've considered NA ### Propose: Link/Inline OR Additional context NA ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte