Hi i want to delay the input into a workflow how can i do that.
Hey @vishalnegi, what exactly are you trying to achieve here? If you have server you can schedule it for later or just wait before you click run or you could use the python tool with a script. Why do you want to do this?
Hi @vishalnegi
If you want to wait a specific amount of time, you can use a set up like this
The text input contains two rows.
The Throttle tool is configure to pass 2 records per minute starting from the first record received. Use a filter tool to skip the first row. Here's the browse output that shows that second row will be passed 30 seconds after the workflow has started.
Connect a Dynamic Input after the filter to read your data after X seconds.
Dan
Hi. If ihave 50 dataset in the table, so should every row will take a minute to pass through the datset? i.e. 50 minutes or is it just first row that will be delayed
Here it is:
Python Lines:
from ayx import Alteryx
from datetime import datetime
import time
import psutil
def adpause(x):
p1 = time.process_time()
time.sleep(x)
return time.process_time() - p1
current_time=datetime.now()
print("Timer starts at: " ,current_time)
result = adpause(60)
current_time=datetime.now()
print("Timer ends at: " ,current_time)