We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

How to delay input into workflow

vishalnegi
7 - Meteor

Hi i want to delay the input into a workflow how can i do that.

4 REPLIES 4
IraWatt
17 - Castor
17 - Castor

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?

danilang
19 - Altair
19 - Altair

Hi @vishalnegi 

 

If you want to wait a specific amount of time, you can use a set up like this 

danilang_0-1679146865058.png

 

The text input contains two rows. 

 

danilang_1-1679146968921.png

 

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.

danilang_2-1679147210964.png

 

Connect a Dynamic Input after the filter to read your data after X seconds.

 

Dan

 

 

vishalnegi
7 - Meteor

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

AsmiDesai
9 - Comet

Here it is:

AsmiDesai_0-1710490908468.png

 

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)

 

Labels
Top Solution Authors