cuddly-jelly-27016
05/22/2025, 12:09 AM@dynamic decorator) will expand out the dynamically created tasks in the web UI after they are run, and will be displayed even after completion:
[Screen Shot 2022-12-02 at 1 18 01 PM](https://user-images.githubusercontent.com/5882973/211121153-d04e1569-623e-48f4-8330-8aba6999ac3b.png)▾
[Screen Shot 2022-12-14 at 8 11 08 PM](https://user-images.githubusercontent.com/5882973/211121155-ab517a6d-d708-4e73-a7ae-79622ffda724.png)▾
@dynamic
def train_workflow_inner(
recipe_path: str,
k_folds: int = 1,
) -> int:
data_flytedir = data_prep_task(recipe_path=recipe_path, recipe_hash=recipe_hash)
s = None
for i in range(k_folds):
model_and_data_flytedir = training_task(
data=data_flytedir,
k_folds=k_folds,
i_fold=i,
)
s = eval_task(data=model_and_data_flytedir)
return s
flyteorg/flytecuddly-jelly-27016
05/22/2025, 12:09 AM