tSleep

One Star

tSleep

Can I have some example of tSleep please?
I am trying to pause the job for few seconds and go back to componant to continue processing.
ex: FILE_EXISTS?------->tSleep
if file is not found i want to pause for few secods and go back to check if file is there.
Thanks
One Star

Re: tSleep

Hi,
Use tFileExist ---- > if trigger (((Boolean)globalMap.get("tFileExist_1_EXISTS"))==false) ----> tSleep
Thanks,
Karthikeyan J.
www.mytalend.in
One Star

Re: tSleep

Thanks for the reply.
So if file not found tSleep, but I want to check for the file again after it sleeps for few secods.
so kind of tFileExists--->if file not found--> sleep for 15 seconds---> Check for file again after 15 seconds.
Moderator

Re: tSleep

Hi,
Please take a look at component TalendHelpCenter:tWaitForFile which iterates on the specified directory and triggers the next component when the defined condition is met.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Moderator

Re: tSleep

Hi skp,
Is component twailtforFile OK with your job requirment?
In addition, you still cannot login on Talend Forum as a community member?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.