[
https://issues.apache.org/jira/browse/CRUNCH-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13968619#comment-13968619
]
Gabriel Reid commented on CRUNCH-374:
-------------------------------------
Ok, SUCCEEDED sounds reasonable to me too. I guess it could be argued that it's
not logical for "nothing" to succeed, but it seems just as reasonable to do it
this way, and it's probably the most passive change that can be done here.
> 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
> “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)