Created
July 18, 2022 18:54
-
-
Save wild-endeavor/a3bb173377cf36b94fe92e78541bfe23 to your computer and use it in GitHub Desktop.
bool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flytekit import task, workflow | |
@task | |
def say_hello(bb: bool) -> str: | |
if bb: | |
return "hello bb" | |
return "hello world" | |
@workflow | |
def my_wf(remote: bool) -> str: | |
res = say_hello(bb=remote) | |
return res | |
if __name__ == "__main__": | |
print(f"Running my_wf() {my_wf(remote=True)}") | |
print(f"Running my_wf() {my_wf(remote=False)}") | |
Author
wild-endeavor
commented
Jul 18, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment