Ignore Graphs with Fail components with a Graph Listener

Hi,

I’d like to know if there is a way to ignore graphs with fail components when creating a graph listener, configured with GRAPH_ERROR?

We do not terminate the parent graph/jobflow when this graph (containing fail components) executes the fail component. We have configured the ExecuteGraph component to use the “stop processing on fail = false” property. Instead of failing we reschedule graph execution.

Can this be done with the universal event listener/groovy script option? Could you provide examples?

Thanks

Hi,

The best way to ignore failed ExcuteGraph is with the “stop processing on fail = false”. If you need to reschedule graph execution, please utilize a Jobflow Event Listener or Graph Event Listener, then choose the appropriate event type (e.g. Graph Error, Graph Finished), and in the task type select start new Graph or Jobflow.

If this does not answer you questions, please elaborate more on your current use case.

Sorry, let me add additional details. The event listener is to notify us of graph errors. We dont want notifications for graphs that contain fail components and are failing, since those graphs will be rescheduled.

Hi,

A solution I would recommend would be to create an Event Listener that triggers on Graph Error. The Event Listener will trigger a graph that will have a HTTPConnector component, which will return the error message of the failed graph. In the HTTPConnector you will need to add this URL to get the error message, you will also need to include the CloverETL Server Username and Password in the defined properties

http://[url]:[port]/clover/simpleHttpApi/graph_status?runID=${EVENT_RUN_ID}&returnType=ERROR_MESSAGE&verbose=MESSAGE