From 2407e5c5c13108e3253aa69583c3e4a3c4c375f9 Mon Sep 17 00:00:00 2001 From: Niels Bantilan Date: Tue, 11 Jul 2023 13:09:24 -0500 Subject: [PATCH] update launchplan Signed-off-by: Niels Bantilan --- scipy-2023/workflows/example_intro.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scipy-2023/workflows/example_intro.py b/scipy-2023/workflows/example_intro.py index 7f7f1bb..e0ada10 100644 --- a/scipy-2023/workflows/example_intro.py +++ b/scipy-2023/workflows/example_intro.py @@ -94,10 +94,11 @@ def training_workflow( return model, train_acc, test_acc -training_launchplan = LaunchPlan.create( - "scheduled_training_workflow", +training_launchplan = LaunchPlan.get_or_create( training_workflow, + name="scheduled_training_workflow", + # run every 2 minutes schedule=CronSchedule(schedule="*/2 * * * *"),