ambitious-evening-58240
06/23/2025, 7:02 AM@step
?square-wire-39606
06/23/2025, 5:49 PMambitious-evening-58240
06/24/2025, 3:38 PMfrom .utils import func_2
class PlaygroundFlow(FlowSpec):
@step
def start(self):
self.next(self.func_1)
@step
def func_1(self):
self.out_1, self.out_2 = func_2()
self.next(self.end)
@step
def end(self):
pass
# utils.py
from time import sleep
def func_2():
out_3 = 1 + func_3()
return out_3
def func_3():
# We would like func_3 to behave "like a step". E.g., The outputs would be serialized and so if func_2 crashes we could resume the flow.
out_4 = 2
sleep(10000)
return out_4
ambitious-evening-58240
06/24/2025, 3:40 PMambitious-evening-58240
06/25/2025, 9:23 AMambitious-evening-58240
06/26/2025, 12:48 PMhundreds-rainbow-67050
07/09/2025, 10:42 AMhundreds-rainbow-67050
07/09/2025, 10:42 AMthe artifacts can't be serializedwhat do you mean by this? the objects can't be pickled?
ambitious-evening-58240
07/14/2025, 2:36 PM