faint-activity-87590
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?cool-lifeguard-49380
05/15/2023, 4:48 PMfaint-activity-87590
05/15/2023, 5:09 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
@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?faint-activity-87590
05/15/2023, 7:38 PMfaint-activity-87590
05/15/2023, 7:39 PM