[ENH] Reduce complexity of run_flow_on_task func
#1596
+271
−87
Loading