high-scientist-77658
09/17/2024, 10:02 AMfrom metaflow import FlowSpec, step
class BaseFlow(FlowSpec):
@step
def start(self):
print("this is the start")
self.next(self.step1)
@step
def step1(self):
print("base step 1")
self.next(self.end)
@step
def end(self):
print("base step end.")
class SubFlow(BaseFlow):
@step
def step1(self):
print("sub step 1")
self.next(self.step2)
if __name__ == "__main__":
SubFlow()
Currently this is not supported as the graph itself is built by traversing the ast of the SubFlow class. I searched the issues on Github and couldn’t see this but has anyone worked on enabling the behaviour above?high-scientist-77658
09/17/2024, 10:31 AMhigh-scientist-77658
09/17/2024, 1:33 PMhigh-scientist-77658
09/24/2024, 9:03 AMhigh-scientist-77658
10/01/2024, 1:05 PMdry-beach-38304
10/08/2024, 3:54 PMhigh-scientist-77658
10/08/2024, 4:31 PMhigh-scientist-77658
10/14/2024, 12:27 PMdry-beach-38304
10/14/2024, 4:44 PMhigh-scientist-77658
10/15/2024, 6:53 AMhigh-scientist-77658
10/22/2024, 12:06 PMdry-beach-38304
10/22/2024, 4:04 PMhigh-scientist-77658
10/23/2024, 9:24 AMdry-beach-38304
10/23/2024, 3:22 PMhigh-scientist-77658
10/23/2024, 3:26 PMdry-beach-38304
10/23/2024, 8:38 PMdry-beach-38304
10/23/2024, 8:38 PMhigh-scientist-77658
10/24/2024, 9:35 AMfunc_lineno
high-scientist-77658
10/24/2024, 1:17 PMdry-beach-38304
10/24/2024, 3:29 PMhigh-scientist-77658
11/05/2024, 1:26 AMdry-beach-38304
11/08/2024, 8:46 PMhigh-scientist-77658
11/09/2024, 6:15 AMhigh-scientist-77658
11/11/2024, 10:00 AMhigh-scientist-77658
11/19/2024, 10:17 AMdry-beach-38304
11/19/2024, 10:21 AMhigh-scientist-77658
11/27/2024, 11:30 AMdry-beach-38304
11/27/2024, 5:17 PMhigh-scientist-77658
11/28/2024, 9:46 AM