# Ignore Graphs with Fail components with a Graph Listener

**URL:** <https://forum.cloverdx.com/t/ignore-graphs-with-fail-components-with-a-graph-listener/1775>\
**Category:** CloverDX Platform\
**Created:** [August 9, 2016, 12:00am UTC](https://forum.cloverdx.com/t/ignore-graphs-with-fail-components-with-a-graph-listener/1775 "2016-08-09T00:00:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul.rego](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@paul.rego](https://forum.cloverdx.com/u/paul.rego)\
**Post date:** [August 9, 2016, 12:00am UTC](https://forum.cloverdx.com/t/ignore-graphs-with-fail-components-with-a-graph-listener/1775/1 "2016-08-09T00:00:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![PedroVazquezRosario](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@PedroVazquezRosario](https://forum.cloverdx.com/u/PedroVazquezRosario)\
**Post date:** [August 11, 2016, 2:12pm UTC](https://forum.cloverdx.com/t/ignore-graphs-with-fail-components-with-a-graph-listener/1775/2 "2016-08-11T14:12:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![paul.rego](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@paul.rego](https://forum.cloverdx.com/u/paul.rego)\
**Post date:** [August 12, 2016, 5:23pm UTC](https://forum.cloverdx.com/t/ignore-graphs-with-fail-components-with-a-graph-listener/1775/3 "2016-08-12T17:23:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![PedroVazquezRosario](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@PedroVazquezRosario](https://forum.cloverdx.com/u/PedroVazquezRosario)\
**Post date:** [August 24, 2016, 1:43pm UTC](https://forum.cloverdx.com/t/ignore-graphs-with-fail-components-with-a-graph-listener/1775/4 "2016-08-24T13:43:51Z")

</div>

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**
