Class RetryWorkflow
java.lang.Object
com.example.workflows.RetryWorkflow
A port of adk-python's
retry workflow sample: a weather lookup fails at random, and its
retry policy runs it again, up to five attempts in all, before the next node reports the weather.
Each failed attempt emits an error event; the run fails if every attempt does.-
Method Summary
-
Method Details
-
create
Builds the workflow. It calls no model. -
main
Runs the workflow once and prints each attempt, each failure, and the report.
-