Scheduling Talend Job on both Windows and Linux OS
In order to schedule a Talend Job, first we have to export the job as build job which will generate the runnable files to execute on required OS. And also all the child jobs in that project converted as jar files.
Right click on the parent/main job of your project and select Build Job option.
It will prompt a window, the job will create a zip file.
You have to choose the path and build type should be Autonomous. And also enable the option Extract the zip file. It will unzip the above zip file in the same path that you have given.
Enable Shell Launcher and Context scripts. For Shell Launcher choose All as the value to generate both runnable files for Win OS and Linux OS. It will generate two executable/runnable files like batch file for Windows OS and Shell file for Linux.
Schedule Talend Job on Windows OS:
On Windows OS, we can schedule the Talend job by using Windows Task Scheduler.
On the right side, under actions you can click on Create Basic Task. And then we can select when the task should run as shown in below image:
You can also select exact time to run:
Now select ‘Start a Program’ option under Action
Now browse the batch file and also you can add any context parameters if needed.
Now click on Finish. Task will be scheduled for the selected time.
Schedule Talend Job on Linux OS:
On Linux OS we use crontab to schedule tasks
Type the below command to open crontab file:
And add the job which need to be schedule as shown in below image:
Hope this post will be useful to refer when scheduling Talend Job.