• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Is there a way to start and stop a particular Job?

#1 2012-01-03 10:50:50

AchyuthB
Member
Registered: 2011-06-22
Posts: 85

Is there a way to start and stop a particular Job?

Tags: [download, Frame, ftp, java, time]

Hi,

The Scenario is to download a file from the FTP site only in the specified time (say between 09:00 and 09:30 AM) everyday.
If the said file does not arrive at the specified time, then do not download.

Can anyone help me in this?

Thank you
Achyuth


Thank you
Achyuth B

Offline

#2 2012-01-03 10:53:32

Or3l
Member
Registered: 2009-07-02
Posts: 216

Re: Is there a way to start and stop a particular Job?

Hi,
Something like that?

tFTPfileExtist-----ifexist------RunJob

Offline

#3 2012-01-03 10:58:09

AchyuthB
Member
Registered: 2011-06-22
Posts: 85

Re: Is there a way to start and stop a particular Job?

Hi,

Thank you for the reply.
But I want to run it only in the particular time frame.
I do not want to download the file if it does not arrive in the specified time frame.

Achyuth


Thank you
Achyuth B

Offline

#4 2012-01-03 11:22:54

anilmca4u
Member
Registered: 2011-02-14
Posts: 90

Re: Is there a way to start and stop a particular Job?

Hi AchyuthB


You can design a scenario like

             twaitForFile   ->   tRunJob

                -> We have the component 'tWaitForFile' which monitors to the local folder for file create/update/delete

tHANKS

ANIL KUMAR
______________________________________________________

HAPPY NEW YEAR TO U AND TO UR TEAM....
HAPPY 2012

Last edited by anilmca4u (2012-01-03 11:25:22)

Offline

#5 2012-01-03 11:25:56

AchyuthB
Member
Registered: 2011-06-22
Posts: 85

Re: Is there a way to start and stop a particular Job?

Hi Anil,

But then where do i specify the time boundary?

In your case, if the file arrives before or after the specified time, then also the file will be downloaded, right?

Thank you
Achyuth


Thank you
Achyuth B

Offline

#6 2012-01-03 11:31:49

Or3l
Member
Registered: 2009-07-02
Posts: 216

Re: Is there a way to start and stop a particular Job?

@anilmca4u, there is no component twaitforfile for ftp.

You can use a tInfiniteLoop.

tInfiniteloop----iterate-----tFileExiste-------ifexist--------tRunJob

If you want to run your job only between 09:00 and 9:30, you can try to schedule it on your server ( iguess your job is on a server right?). If it's on a linux, just edit the crontab to run the .sh at 9:00 and create a shell script to stop it that you cront at 9:30 (I can give you the script which stops a process using his name).

If it's a windows, use the scheduler.

Offline

#7 2012-01-03 15:44:59

anilmca4u
Member
Registered: 2011-02-14
Posts: 90

Re: Is there a way to start and stop a particular Job?

Hi AchyuthB

To specify the time frame to run a job Talend provide Job Server or TAC there u can schedule a Job




tHANKS

ANIL KUMAR
______________________________________________________

HAPPY NEW YEAR TO U AND TO UR TEAM....
HAPPY 2012

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Is there a way to start and stop a particular Job?

Board footer

Powered by FluxBB