You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@crunch.apache.org by "Josh Wills (JIRA)" <ji...@apache.org> on 2014/04/15 02:25:14 UTC

[jira] [Resolved] (CRUNCH-374) Pipeline.done returns READY when there is nothing to run

     [ https://issues.apache.org/jira/browse/CRUNCH-374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Wills resolved CRUNCH-374.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.8.3
                   0.10.0

Committed. Thanks Nathan!

> 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
>             Fix For: 0.10.0, 0.8.3
>
>         Attachments: 0001-CRUNCH-374.patch
>
>
> It is 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. 
> Perhaps a new status of “DONE” should be returned in this case



--
This message was sent by Atlassian JIRA
(v6.2#6252)