Change Flow.iflat_tasks so that we can pass task.status or string