-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d708edb
commit 7f2ae48
Showing
4 changed files
with
58 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
from flytekit import task, workflow | ||
|
||
|
||
# Define a task that produces the string "Hello, World!" | ||
# by using the `@task` decorator to annotate the Python function | ||
@task | ||
def say_hello() -> str: | ||
return "Hello, World!" | ||
|
||
|
||
# Handle the output of a task like that of a regular Python function. | ||
@workflow | ||
def hello_world_wf() -> str: | ||
def wf() -> str: | ||
res = say_hello() | ||
return res | ||
|
||
|
||
# Run the workflow locally by calling it like a Python function | ||
# Local execution | ||
if __name__ == "__main__": | ||
print(f"Running hello_world_wf() {hello_world_wf()}") | ||
print(f"Running wf() {wf()}") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
cwlVersion: v1.2 | ||
|
||
# What type of CWL process we have in this document. | ||
class: CommandLineTool | ||
# This CommandLineTool executes the linux "echo" command-line tool. | ||
baseCommand: echo | ||
|
||
# The inputs for this process. | ||
inputs: | ||
message: | ||
type: string | ||
# A default value that can be overridden, e.g. --message "Hola mundo" | ||
default: "Hello World" | ||
# Bind this message value as an argument to "echo". | ||
inputBinding: | ||
position: 1 | ||
outputs: [] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
## Storage | ||
|
||
https://cloud.google.com/architecture/ai-ml/storage-for-ai-ml?hl=de#storage-options | ||
|
||
|
||
## Containerizing your project | ||
|
||
https://docs.flyte.org/en/latest/flyte_fundamentals/registering_workflows.html#containerizing-your-project |