beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luke Cwik (JIRA)" <>
Subject [jira] [Commented] (BEAM-849) Redesign PipelineResult API
Date Mon, 09 Jan 2017 18:09:59 GMT


Luke Cwik commented on BEAM-849:

[~staslev], a user needs to understand that a Pipeline will be executing asynchronously which
means the State from `getState()` can be stale or out of date as soon as it is returned. I
would argue for returning state from `waitUntilFinish()` or `cancel()`. I would argue that
in the case of timeout, `waitUntilFinish()` should throw an exception instead of returning
`null` since the user requested for a terminal state yet we failed to do so.

> Redesign PipelineResult API
> ---------------------------
>                 Key: BEAM-849
>                 URL:
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>            Reporter: Pei He
> Current state: 
> Jira addresses waitUntilFinish() and cancel().

> However, there are additional work around PipelineResult: 
> need clearly defined contract and verification across all runners 
> need to revisit how to handle metrics/aggregators 
> need to be able to get logs

This message was sent by Atlassian JIRA

View raw message