Icon

01_Fault_Tolerant_Workflow_Orchestration

Fault tolerant Workflow orchestration

This example shows how to orchestrate the fault tolerant execution of multiple local KNIME Workflows. All Workflows in the batch are repeatedly executed until they succeed or reach a user-defined maximum number of fails.

Annotations and comments
  • Fault tolerant execution of Multiple Workflows This workflow shows how to execute multiple local KNIME Workflows with fault tolerant error handling. In Order to execute multiple Workflows, KNIME provides the "Execute local workflow" Node. However, sometimes a Workflow can fail, especially if the Workflow depends on the availibility of some kind of external service or maybe the Workflow to be called is not available during execution. We use the Try and Catch Nodes to process failing Workflows and a Recursive Loop to re-run them until the defined maximum number of executions is reached. In any case, each Workflow will produce a row with information such as number of times the workflow was executed and the execution time for reporting as well as the final status and a status message.
  • Setup Workflow Metadata
  • Loop over all Workflows defined in Metadata from previous section
  • Recursive Loop for multiple Workflow execution on fail depending on parameter "Max_Iterations".
  • Executes Workflow defined in Metadata
  • Add Timestamp as Column
  • Filter Columns for Loop input Specs
  • Create start timestamp
  • Create end timestamp
  • Extract Workflow runtime
  • Create JSON Parameter Input for Local Workflow Call
  • Map Variables to Row
  • Remove irrelevant cols for report
  • Merge Status Column & ErrorMsg Column
  • Rename Columns for report
  • Sort Column for report
  • Increment number of iterations
  • Transfor default Catch-Error Msg to MISSING
  • Transform Status to "Successful"
  • Transform to "Failed"
  • Add Column for number of Iterations
  • Rules for recursive processing
  • Create default Status Column and empty json-output
  • End of outer Loop (Collection of batch execution report data)
  • Add helper variable for Rule-based Row Splitter
  • End of Inner Loop
  • Inner Loop for multiple Workflow execution on Error
  • Input Table with Workflow Orchestration Metadata
  • Outer Loop Iterate Workflow Metadata Row as Variable
  • create Rows from Iteration Variables

Nodes

Extensions

Links