self.next connects Metaflow steps directly in workflow code, allowing the framework to construct a workflow DAG without a separate graph definition. section 9.3.3
Use self.next to express workflow control flow:
- Keep workflow definition and prototype code together so the same implementation can be tested locally and exported to production orchestrators. section 9.3.3
Sequential and branching workflow
A start step calls self.next(self.transform_data). The transform step calls self.next(self.save_to_db, self.notify_data_science_team), creating two branches that can later converge at self.join.
