We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a33297 commit c526802Copy full SHA for c526802
main.py
@@ -3,6 +3,8 @@
3
use the automation_context module to wrap your function in an Autamate context helper
4
"""
5
6
+import time
7
+
8
from pydantic import Field
9
from speckle_automate import (
10
AutomateBase,
@@ -46,6 +48,11 @@ def automate_function(
46
48
# the context provides a conveniet way, to receive the triggering version
47
49
version_root_object = automate_context.receive_version()
50
51
+ sleep_cycles = 10
52
+ for i in range(sleep_cycles):
53
+ print(f"sleeping {i}/{sleep_cycles}")
54
+ time.sleep(5)
55
56
count = 0
57
for b in flatten_base(version_root_object):
58
if b.speckle_type == function_inputs.forbidden_speckle_type:
0 commit comments