[
https://issues.apache.org/jira/browse/BEAM-759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15816494#comment-15816494
]
ASF GitHub Bot commented on BEAM-759:
-------------------------------------
GitHub user aaltay reopened a pull request:
https://github.com/apache/beam/pull/1762
[BEAM-759] Implement wait_until_finish method for existing runners.
Implement wait_until_finish method for existing runners.
Also defines the not implemented cancel() method and updates existing
usages to use wait_until_finish() instead of blocking runners.
Main changes are in the runners/ folder
runner.py - has the APIs
dataflow_runner.py, direct_runner.py modified to implement the API (moving
the existing blocking code around.)
Rest of the changes are mechanical to mainly convert
p.run() to p.run().wait_until_finish() in tests and examples. Changed tests
because they run validation after the run and need to block until completion.
We may revert the changes in examples. I converted the because in the
instructions we directed users to blocking runners before and this change keeps
the behavior same.
I have started a local post commit run (not completed yet) and it was
successful with the first few tests so far and the changes are same for all
tests.
Remaining work after this PR:
- Removing BlockingDataflowRunner. It is not used after this change with
the SDK code/examples/tests.
- Support for duration argument in wait_until_finish is missing.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aaltay/incubator-beam expand
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/beam/pull/1762.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1762
----
commit c6c78a3fe15910acf2d1cc0bf244af06794dea1f
Author: Ahmet Altay <[email protected]>
Date: 2017-01-10T02:23:20Z
Implement wait_until_finish method for existing runners.
Also defines the not implemented cancel() method and updates existing
usages to use wait_until_finish() instead of blocking runners.
commit a27773088d1ecad371725fdd5d27c5a1dd58a5cb
Author: Ahmet Altay <[email protected]>
Date: 2017-01-10T22:15:36Z
Fix wrong use of wait_until_complete in examples.
----
> PipelineResult needs waitToFinish() and cancel()
> ------------------------------------------------
>
> Key: BEAM-759
> URL: https://issues.apache.org/jira/browse/BEAM-759
> Project: Beam
> Issue Type: Improvement
> Components: sdk-py
> Reporter: Ahmet Altay
> Priority: Minor
> Labels: sdk-consistency
>
> Java SDK, added waitToFinish() and cancel() to the PipelineResults, and as a
> result were able to remove BlockingDataflowRunner.
> (See: https://issues.apache.org/jira/browse/BEAM-443)
> The same changes needs to happen in python sdk.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)