oodt-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mallder, Valerie" <Valerie.Mall...@jhuapl.edu>
Subject RE: Workflow failure - How can i customize workflow statuses in order to have an ERROR status?
Date Mon, 02 Nov 2015 21:40:42 GMT
This was a really good question Andrea, thanks for asking it. I have had the same question.
I'm not sure I understand Chris' answer though.  

I would like to know how to abort execution of the entire workflow if any of the tasks within
the workflow exit with a failure status.  Is there such a thing as a "task precondition"?
 I figured out how to create a workflow precondition (because I don't want my workflow to
be triggered to start if there is already one in progress), but, I can't tell if there is
a way to set a precondition on a specific task in a workflow.


Valerie A. Mallder
New Horizons Deputy Mission System Engineer
Johns Hopkins University/Applied Physics Laboratory

> -----Original Message-----
> From: Chris Mattmann [mailto:chris.mattmann@gmail.com]
> Sent: Monday, November 02, 2015 12:39 PM
> To: dev@oodt.apache.org
> Subject: Re: Workflow failure - How can i customize workflow statuses in order to
> have an ERROR status?
> Hi Andrea,
> Your best bet here if you are using CAS-PGE would be to indicate somehow in
> your <exe> block that a failure has occurred. The reality is that CAS-PGE runs
as a
> script on the actual node so you have the full power of scripting and linux to report
> errors, etc., and to signal back. If CAS-PGE gets a signal that there has been an
> error it will propagate up.
> My suggestion then may be to extend StdPgeTaskInstance and add your own
> custom state reporting catching CAS-PGE’s error and flowing it up.
> Cheers,
> Chris
> —
> Chris Mattmann
> chris.mattmann@gmail.com
> -----Original Message-----
> From: Andrea Fonti <andrea.fonti@altecspace.it>
> Reply-To: <dev@oodt.apache.org>
> Date: Monday, November 2, 2015 at 2:02 AM
> To: <dev@oodt.apache.org>
> Subject: Workflow failure - How can i customize workflow statuses in order to have
> an ERROR status?
> >Hi everyone,
> >
> >
> >
> >Does the oodt  batchstub have a way to report an error condition to the
> >workflow manager?
> >
> >Now I have exceptions in logs but the workflow manager component
> >reports a workflow as finished even if it has failed tasks,
> >
> >Should I develop code in order to signal  failure to the workflow
> >manager from the batch stub?
> >
> >
> >
> >Best regards
> >
> >Andrea
> >
> >---- ALTEC S.p.A. ----
> >
> >La presente email è destinata solo al/i destinatario/i sopra indicato/i.
> >Può riguardare un messaggio confidenziale e contenere informazioni e
> >dati di natura RISERVATA O CLASSIFICATA. Non è consentita la sua
> >lettura indebita, la sua duplicazione o la sua divulgazione. Le
> >opinioni dell'autore di questa email non sono  necessariamente le
> >opinioni di ALTEC S.p.A.
> >Nulla di quanto contenuto in questa email può sostituire un contratto
> >ovvero una obbligazione vincolante per ALTEC S.p.A.
> >Nel caso doveste ricevere la presente email per errore, siete
> >cortesemente pregati di distruggere la Vostra copia e di contattarci
> >telefonicamente o a mezzo email o facsimile. Grazie.
> >
> >This email is intended only for the use of the above mentioned
> >addressee(s).
> >It is confidential and may contain legally PRIVILEGED OR CLASSIFIED
> >information and data. Unauthorized reading, copying, disclosure or use
> >is strictly prohibited. The views of the author hereof may not
> >necessarily constitute the views of ALTEC S.p.A.
> >Nothing in this email shall bind ALTEC S.p.A. in any contract or
> >obligation.
> >If you received this email/facsimile through an error, please destroy
> >your copy and telephone or email/fax us immediately. Thank you.

View raw message