Skip to content

Commit c526802

Browse files
committed
test sleeping
1 parent 3a33297 commit c526802

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

main.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
use the automation_context module to wrap your function in an Autamate context helper
44
"""
55

6+
import time
7+
68
from pydantic import Field
79
from speckle_automate import (
810
AutomateBase,
@@ -46,6 +48,11 @@ def automate_function(
4648
# the context provides a conveniet way, to receive the triggering version
4749
version_root_object = automate_context.receive_version()
4850

51+
sleep_cycles = 10
52+
for i in range(sleep_cycles):
53+
print(f"sleeping {i}/{sleep_cycles}")
54+
time.sleep(5)
55+
4956
count = 0
5057
for b in flatten_base(version_root_object):
5158
if b.speckle_type == function_inputs.forbidden_speckle_type:

0 commit comments

Comments
 (0)