paul.rego
Posts: 4
Joined: Tue May 17, 2016 12:28 pm

Ignore Graphs with Fail components with a Graph Listener

Postby paul.rego » Tue Aug 09, 2016 6:05 pm

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

vazquezrosariop
Posts: 96
Joined: Mon Feb 29, 2016 5:33 pm

Re: Ignore Graphs with Fail components with a Graph Listener

Postby vazquezrosariop » Thu Aug 11, 2016 3:12 pm

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.
---
Pedro Vazquez Rosario
CloverCARE Support
CloverETL | Rapid Data Integration

Visit us online at http://www.cloveretl.com
How to speed up communication with CloverCARE support

paul.rego
Posts: 4
Joined: Tue May 17, 2016 12:28 pm

Re: Ignore Graphs with Fail components with a Graph Listener

Postby paul.rego » Fri Aug 12, 2016 6:23 pm

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.

vazquezrosariop
Posts: 96
Joined: Mon Feb 29, 2016 5:33 pm

Re: Ignore Graphs with Fail components with a Graph Listener

Postby vazquezrosariop » Wed Aug 24, 2016 2:43 pm

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
---
Pedro Vazquez Rosario
CloverCARE Support
CloverETL | Rapid Data Integration

Visit us online at http://www.cloveretl.com
How to speed up communication with CloverCARE support


cron