Handling files before and after the execution of a data Job - 7.0

Orchestration (Integration)

author
Talend Documentation Team
EnrichVersion
7.0
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Orchestration components (Integration)
Data Quality and Preparation > Third-party systems > Orchestration components (Integration)
Design and Development > Third-party systems > Orchestration components (Integration)
EnrichPlatform
Talend Studio

In this scenario, a pre-job and a post-job are added to the Job describes in Finding duplicate files between two folders to handle files before and after the execution of the main data Job.

For more technologies supported by Talend, see Talend components.

As described in the above-mentioned scenario, when the main data Job is started, it creates a temporary text file to store the fetched filenames. If the specified temporary file already exists, it will be overwritten.

To prevent possible loss of data, the pre-job saves a backup copy of the specified file by renaming it, if it exists, before the main Job is executed.

After the execution of the main data Job, the post-job deletes the temporary file created by the data Job and restores the backup file, if any.