Skip to main content Skip to complementary content

Restartability example

This section explains restartability in Talend Jobs with a simple example. The Job below reads from two files and creates two new files.

Procedure

  1. Go to the component view of the OnSubjobOk.
  2. Select the check box to the left of Recovery Checkpoint in the Error recovery tab.
    This is you restartability point.
  3. Give the instructions to follow in case the Job fails.

    In this example, the instruction given is restart the job.

  4. In Talend Administration Center, go to Job Conductor or Execution Plan.
  5. Schedule and run this job.
    In the example below, the Job was scheduled in the Job Conductor and failed during the last execution.
  6. Click Real Time Statistics to see the point of failure.
  7. Open the task recovery module on the Task Execution Monitoring page.
    The recovery module provides a lot of details, such as the failure instructions provided in the Job design, the point of restart, tFileInputDelimited_2 in this case, and the error that the Job encountered.
  8. Click the launch recovery option to restart the Job.

    The Job starts from the checkpoint and completes successfully.

Results

The first image below shows the files at the time of the Job failure, and the second image shows the files after restartability.

When the Job execution failed, the file out was already written. Then when you used the checkpoint to restart the Job, it did not overwrite out but created a new file named out1.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!