square-boots-41503
03/10/2023, 5:23 PMwf_6
and wf_7
also rendered in the UI bug I don’t see in the “Nodes” tab nor the “Timeline” tab. The “Graph” tab only shows a single node which is another problem but I believe people are aware and working on that issue.
@dynamic
def wf_1(n: int) -> int:
return wf_2(n=n+1)
@dynamic
def wf_2(n: int) -> int:
return wf_3(n=n+1)
@dynamic
def wf_3(n: int) -> int:
return wf_4(n=n+1)
@dynamic
def wf_4(n: int) -> int:
return wf_5(n=n+1)
@dynamic
def wf_5(n: int) -> int:
return wf_6(n=n+1)
@dynamic
def wf_6(n: int) -> int:
return wf_7(n=n+1)
@dynamic
def wf_7(n: int) -> int:
return n+1
@workflow
def run_wf(n: int) -> int:
return wf_1(n=n)
broad-monitor-993
03/10/2023, 5:25 PMlate-eye-50215
03/10/2023, 10:01 PMlate-eye-50215
03/10/2023, 10:02 PM1.4
release included a fix that should have resolved this issue - definitely possible its still broken but letting us know which version of flyteconsole
is running will help us figure this out 👍square-boots-41503
03/10/2023, 10:07 PMlate-eye-50215
03/11/2023, 2:33 AMsquare-boots-41503
03/12/2023, 3:44 AMlate-eye-50215
03/13/2023, 5:09 PMsquare-boots-41503
03/13/2023, 5:23 PMsquare-boots-41503
03/16/2023, 9:34 PM@workflow
is called recursively like in the following code.
@dynamic
def wf_recurse(n: int) -> int:
print(f'Calling wf_recurse with {n=}')
return wf_recurse_conditional(n=n-1)
@dynamic
def return_n(n: int) -> int:
return n
@workflow
def wf_recurse_conditional(n: int) -> int:
return (
conditional("cond")
.if_(n == 0)
.then(return_n(n=n))
.else_()
.then(
wf_recurse(
n=n
)
)
)
@workflow
def run_wf(n: int) -> int:
return wf_recurse(n=n
I attached a screen recording of the UI error.square-boots-41503
03/16/2023, 9:36 PM@workflow
to be a @dynamic
function but that has a different issue where .with_overrides(name=??)
doesn't work but I believe that's being tracked in a separate issue.late-eye-50215
03/16/2023, 10:25 PMlate-eye-50215
03/16/2023, 10:28 PM