Josh Greenhalgh
03/15/2021, 3:28 PMResult
classes to my flows.
If I specify the result class in the same file that the flow is defined via flow.result = ...
everything works as expected.
However if I import the flow def and then attach the result class (same way just outside the flow def) I do not get any stored results.
I have put together a minimal repo here -> https://github.com/josh-gree2/minimal-repo/compare/result-in-cli...master (the two branches show what I mean)master
all works as expected, result-in-cli
not so much...Zanie
03/15/2021, 3:43 PMJosh Greenhalgh
03/15/2021, 3:45 PMZanie
03/15/2021, 3:46 PMJosh Greenhalgh
03/15/2021, 3:46 PM__init__.py
perhaps?Zanie
03/15/2021, 3:47 PMJosh Greenhalgh
03/15/2021, 4:01 PMZanie
03/15/2021, 4:12 PMresult
is not serialized in the Flow object, so the result type attached to a flow is loaded when the flow is loaded from storageMarvin
03/15/2021, 4:12 PMJosh Greenhalgh
03/15/2021, 4:17 PMZanie
03/15/2021, 4:18 PMflow.result = None if not os.environ.get("RESULT_TYPE") else ...
?Josh Greenhalgh
03/15/2021, 4:19 PMZanie
03/15/2021, 4:35 PMJosh Greenhalgh
03/15/2021, 4:36 PMZanie
03/15/2021, 4:37 PM