11-06-2018 10:26 AM
Solved! Go to Solution.
07-12-2023 12:58 PM
Hello Chad,
There seems to be no function in the workflows.
Therefore I work with the sleep function of Python.
As a test just create a simple workflow with a "Script Activity" and put the following in it to check the function. This works fine for me.
import time
import datetime
print("Before")
now = datetime.datetime.now()
print(now)
time.sleep(10)
print("After")
now = datetime.datetime.now()
print(now)
07-11-2023 06:38 AM - edited 07-11-2023 06:38 AM
Hi @StephanH ,
Wondering if you find the answer for this question?
I tried time.sleep() python function but it didn't like it.
Thanks
07-12-2023 12:58 PM
Hello Chad,
There seems to be no function in the workflows.
Therefore I work with the sleep function of Python.
As a test just create a simple workflow with a "Script Activity" and put the following in it to check the function. This works fine for me.
import time
import datetime
print("Before")
now = datetime.datetime.now()
print(now)
time.sleep(10)
print("After")
now = datetime.datetime.now()
print(now)