Return-Path: X-Original-To: apmail-crunch-dev-archive@www.apache.org Delivered-To: apmail-crunch-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C221211D5E for ; Mon, 14 Apr 2014 14:38:19 +0000 (UTC) Received: (qmail 89213 invoked by uid 500); 14 Apr 2014 14:38:17 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 89148 invoked by uid 500); 14 Apr 2014 14:38:15 -0000 Mailing-List: contact dev-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@crunch.apache.org Delivered-To: mailing list dev@crunch.apache.org Received: (qmail 89109 invoked by uid 500); 14 Apr 2014 14:38:15 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 89094 invoked by uid 99); 14 Apr 2014 14:38:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 14:38:15 +0000 Date: Mon, 14 Apr 2014 14:38:14 +0000 (UTC) From: "Josh Wills (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CRUNCH-374) Pipeline.done returns READY when there is nothing to run MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CRUNCH-374?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1396= 8392#comment-13968392 ]=20 Josh Wills commented on CRUNCH-374: ----------------------------------- I'm okay with returning SUCEEDED in this case, FWIW. > Pipeline.done returns READY when there is nothing to run > -------------------------------------------------------- > > Key: CRUNCH-374 > URL: https://issues.apache.org/jira/browse/CRUNCH-374 > Project: Crunch > Issue Type: Improvement > Reporter: Nathan Barry > Priority: Minor > > It is odd that Pipeline.done() returns a PipelineResult with a status of = =E2=80=9CREADY=E2=80=9D when there is nothing staged in the pipeline when d= one is called. It makes sense to not return =E2=80=9CSUCCEEDED=E2=80=9D as= that implies that something happened successfully, but =E2=80=9CREADY=E2= =80=9D isn=E2=80=99t a terminal state but it=E2=80=99s an initial state so = checking for a status of READY after calling done is counterintuitive.=20 > Perhaps a new status of =E2=80=9CDONE=E2=80=9D should be returned in this= case -- This message was sent by Atlassian JIRA (v6.2#6252)