01-29-2021 12:00 AM
01-29-2021 11:20 PM
@Mahesh7225 There is no in built snap available. You can use below python script to wait. But in case of 10/15mins to wait should use scheduler to trigger.
import time
from com.snaplogic.scripting.language import ScriptHook
class TransformScript(ScriptHook):
def init(self, input, output, error, log):
self.input = input
self.output = output
self.error = error
self.log = log
# The "execute()" method is called once when the pipeline is started
# and allowed to process its inputs or just send data to its outputs.
def execute(self):
while self.input.hasNext():
data = self.input.next()
time.sleep(10)
self.output.write(data)
self.log.info("Finished executing the Transform script")
hook = TransformScript(input, output, error, log)
02-07-2021 11:53 PM
Thanks from reply , Do you have any sample pipeline ?
Thanks
Mahesh
02-08-2021 10:28 AM
Hi,
Below is the sample pipeline that can be used to delay time. Right now this pipeline has delay time of 89 sec, you can change that according to your preference.sleep_2021_01_29.slp (3.7 KB)