Slide 32
Slide 32 text
Hello, world: 全体像
@component(base_image="python:3.9")
def hello_world(text: str) -> str:
print(text)
return text
@dsl.pipeline(
name="intro-pipeline-unique",
description="A simple intro pipeline",
pipeline_root=PIPELINE_ROOT,
)
def pipeline(text: str = "hi there"):
hw_task = hello_world(text=text)
compiler.Compiler().compile(
pipeline_func=pipeline, package_path="intro_pipeline.yaml")