Running an Hello World workflow on Tensorlake Serverless.
workflow.py
, start by importing the necessary components and defining the functions:
hello_name
and hello_world
, with hello_name
as the starting node and an edge directing the flow to hello_world
.
python workflow.py
will execute the workflow locally and print the output.
hello_name
, so
the input to the graph is the name
parameter.
The result of calling a graph is an Invocation
. Since data applications can take a long time to complete,
calling outputs
on an invocation will wait for the invocation to be complete.
In either case, the result of the individual functions can be retrieved using the invocation id, and the name of the function.