I have a flow in Prefect, where the the starting and the stopping of the DB client is happening for each mapped task. Below is a visual of the end of an example ETL.