Jan Fiedler
05/15/2023, 2:34 PM@task
def print_stuff(input: str):
print(input)
@workflow
def wf1(test: str = "test"):
print_stuff(input=f"hello {test}")
Since test
is a Promise in that context i am getting weird prints. Is there a way to extract the string value?Fabio Grätz
05/15/2023, 4:48 PMJan Fiedler
05/15/2023, 5:09 PMYee
@workflow
def wf(a: int)
for i in range(a): ... # this fails.
@dynamic
def dwf(a: int)
for i in range(a): ... # this succeeds.
# however tasks in a dynamic task still produce promises
@dynamic
def dwf()
a = task_that_produces_an_int()
for i in range(a): ... # this still fails.
in your case however, can you not test
as a separate input to the task?Jan Fiedler
05/15/2023, 7:38 PM