crunch-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barry,Nathan" <NBA...@CERNER.COM>
Subject Re: Pipeline.done returns "READY" when nothing is staged
Date Wed, 09 Apr 2014 22:17:41 GMT
Tx.. Logged https://issues.apache.org/jira/browse/CRUNCH-374

From: Josh Wills <josh.wills@gmail.com<mailto:josh.wills@gmail.com>>
Reply-To: "user@crunch.apache.org<mailto:user@crunch.apache.org>" <user@crunch.apache.org<mailto:user@crunch.apache.org>>
Date: Wednesday, April 9, 2014 at 5:05 PM
To: "user@crunch.apache.org<mailto:user@crunch.apache.org>" <user@crunch.apache.org<mailto:user@crunch.apache.org>>
Subject: Re: Pipeline.done returns "READY" when nothing is staged


Probably an oversight, agree that DONE or a custom status would make more sense.

On Apr 9, 2014 3:04 PM, "Barry,Nathan" <NBARRY@cerner.com<mailto:NBARRY@cerner.com>>
wrote:
I found it odd that  Pipeline.done() returns a PipelineResult with a status of “READY”
when there is nothing staged in the pipeline when done is called.  It makes sense to not return
“SUCCEEDED” as that implies that something happened successfully, but “READY” isn’t
a terminal state but it’s an initial state so checking for a status of READY after calling
done is counterintuitive.

Is this expected and desired?  Or should an alternate successful-like status be returned,
such as “DONE” or “DONE-NO-OP"

Nathan
CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation
and are intended only for the addressee. The information contained in this message is confidential
and may constitute inside or non-public information under international, federal, or state
securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such
information is strictly prohibited and may be unlawful. If you are not the addressee, please
promptly delete this message and notify the sender of the delivery error by e-mail or you
may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024<tel:%28%2B1%29%20%28816%29221-1024>.

Mime
View raw message