You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@oozie.apache.org by Paul Chavez <pc...@verticalsearchworks.com> on 2013/03/11 23:07:47 UTC
Auto retry failed action once
Is there a way to have an action that fails repeat itself one time? We are working with a particular pig script that occasionally fails with what appears to be a transient error. At least, when we re-run the script it works. We are working this into a workflow and are looking for a way to have it re-try a failed action once.
First instinct is to use a decision node, but I don't know how to track the state to ensure it only retries once. Second idea was to just implement the action twice, and have <error to="second action">, <ok to="third action">.
Is there a best practice around this type of thing?
thanks,
Paul
RE: Auto retry failed action once
Posted by Paul Chavez <pc...@verticalsearchworks.com>.
I promise I did read that part of the docs! It must have gone over my head, this looks like what I need.
Thank you,
Paul
-----Original Message-----
From: Mohammad Islam [mailto:mislam77@yahoo.com]
Sent: Monday, March 11, 2013 4:32 PM
To: user@oozie.apache.org
Subject: Re: Auto retry failed action once
Did you try this?
http://oozie.apache.org/docs/3.3.1/WorkflowFunctionalSpec.html#a18_User-Retry_for_Workflow_Actions_since_Oozie_3.1
Regards,
Mohammad
________________________________
From: Paul Chavez <pc...@verticalsearchworks.com>
To: "user@oozie.apache.org" <us...@oozie.apache.org>
Sent: Monday, March 11, 2013 3:07 PM
Subject: Auto retry failed action once
Is there a way to have an action that fails repeat itself one time? We are working with a particular pig script that occasionally fails with what appears to be a transient error. At least, when we re-run the script it works. We are working this into a workflow and are looking for a way to have it re-try a failed action once.
First instinct is to use a decision node, but I don't know how to track the state to ensure it only retries once. Second idea was to just implement the action twice, and have <error to="second action">, <ok to="third action">.
Is there a best practice around this type of thing?
thanks,
Paul
Re: Auto retry failed action once
Posted by Mohammad Islam <mi...@yahoo.com>.
Did you try this?
http://oozie.apache.org/docs/3.3.1/WorkflowFunctionalSpec.html#a18_User-Retry_for_Workflow_Actions_since_Oozie_3.1
Regards,
Mohammad
________________________________
From: Paul Chavez <pc...@verticalsearchworks.com>
To: "user@oozie.apache.org" <us...@oozie.apache.org>
Sent: Monday, March 11, 2013 3:07 PM
Subject: Auto retry failed action once
Is there a way to have an action that fails repeat itself one time? We are working with a particular pig script that occasionally fails with what appears to be a transient error. At least, when we re-run the script it works. We are working this into a workflow and are looking for a way to have it re-try a failed action once.
First instinct is to use a decision node, but I don't know how to track the state to ensure it only retries once. Second idea was to just implement the action twice, and have <error to="second action">, <ok to="third action">.
Is there a best practice around this type of thing?
thanks,
Paul