You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This example describes how to poll an FTP server - for example, in a DMZ and start the execution of a job chain for each file found. The example shows the configuration for the JobScheduler's YADE Client JITL job, which is a pre-configured job delivered with the JobScheduler.

In the example:

  • each file found on the FTP server is transferred to local (using the YADE copy command)
  • files are renamed
  • the remote files are deleted
  • an order for another job chain is created for each file.

The configuration sets up 2 job chains. The job chain job_chain_ftp_file_order_source contains one step with the YADE Client job.

The order for the polling job chain sets the parameters for polling (10s) and poll_timeout (1m). Polling is restarted after the timeout has been reached.
The order also defines how to create the order for each file by setting the value for order_jobchain_name to a valid job chain name.
It also describes how to transfer the files. In this case copying with source protocol is ftp and target protocol is local

The job chain job_chain_file_order_source_execute can be an job chain you want to execute. Please note that the orders for this job chain will be created by the polling job chain. These orders will have the same parameters as the polling order and additionally these

  • scheduler_file_path
  • scheduler_file_parent
  • scheduler_file_name
  • scheduler_target_file_parent
  • scheduler_target_file_name
  • scheduler_source_file_parent
  • scheduler_source_file_name
  • ftp_result_files
  • ftp_result_zero_byte_files
  • ftp_result_filenames
  • ftp_result_filepaths
  • ftp_result_error_message

  • No labels