Hello, I have been trying to use the input params ...
# ask-the-community
f
Hello, I have been trying to use the input params to the workflow but not able to due to they are Promises. Here is my test workflow to prove my point.
Copy code
@task
def t1(team: str, a: int) -> Tuple[str, int]:
    print(f'in t1() team: {team}')
    print(f'in t1() a: {a}')
    return team, a

@workflow
def wf(team: str = 'abc', a: int = 3) -> Tuple[str, int]:
    print(f'in wf() team: {team}')
    print(f'in wf() a: {a}')

    x, y = t1(team=f'{team}_{a}', a=a)
    return x, y

if __name__ == "__main__":
    print(f"result from wf(): {wf(team='abc', a=3)}")
155 Views