From c526802a6db0866477772f0089f934f7633c42dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Jedlicska?= Date: Wed, 25 Oct 2023 19:13:15 +0200 Subject: [PATCH] test sleeping --- main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.py b/main.py index b8d9950..2a0f126 100644 --- a/main.py +++ b/main.py @@ -3,6 +3,8 @@ use the automation_context module to wrap your function in an Autamate context helper """ +import time + from pydantic import Field from speckle_automate import ( AutomateBase, @@ -46,6 +48,11 @@ def automate_function( # the context provides a conveniet way, to receive the triggering version version_root_object = automate_context.receive_version() + sleep_cycles = 10 + for i in range(sleep_cycles): + print(f"sleeping {i}/{sleep_cycles}") + time.sleep(5) + count = 0 for b in flatten_base(version_root_object): if b.speckle_type == function_inputs.forbidden_speckle_type: