You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by al...@apache.org on 2017/02/15 07:49:06 UTC
[1/2] beam git commit: Make examples blocking as command line invoked
Repository: beam
Updated Branches:
refs/heads/master db19c7df5 -> e720a7c43
Make examples blocking as command line invoked
Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/2fadeb82
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/2fadeb82
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/2fadeb82
Branch: refs/heads/master
Commit: 2fadeb8205ec61c11dda5b623f28de688f6c406b
Parents: db19c7d
Author: Sourabh Bajaj <so...@google.com>
Authored: Tue Feb 14 17:15:04 2017 -0800
Committer: Ahmet Altay <al...@google.com>
Committed: Tue Feb 14 23:48:23 2017 -0800
----------------------------------------------------------------------
.../apache_beam/examples/complete/juliaset/juliaset/juliaset.py | 2 +-
.../examples/complete/juliaset/juliaset/juliaset_test.py | 2 +-
sdks/python/apache_beam/examples/cookbook/bigquery_tornadoes.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/beam/blob/2fadeb82/sdks/python/apache_beam/examples/complete/juliaset/juliaset/juliaset.py
----------------------------------------------------------------------
diff --git a/sdks/python/apache_beam/examples/complete/juliaset/juliaset/juliaset.py b/sdks/python/apache_beam/examples/complete/juliaset/juliaset/juliaset.py
index 30883dc..8e5d5b3 100644
--- a/sdks/python/apache_beam/examples/complete/juliaset/juliaset/juliaset.py
+++ b/sdks/python/apache_beam/examples/complete/juliaset/juliaset/juliaset.py
@@ -113,7 +113,7 @@ def run(argv=None): # pylint: disable=missing-docstring
lambda (k, coords): ' '.join('(%s, %s, %s)' % coord for coord in coords))
| WriteToText(known_args.coordinate_output))
# pylint: enable=expression-not-assigned
- return p.run()
+ return p.run().wait_until_finish()
# Optionally render the image and save it to a file.
# TODO(silviuc): Add this functionality.
http://git-wip-us.apache.org/repos/asf/beam/blob/2fadeb82/sdks/python/apache_beam/examples/complete/juliaset/juliaset/juliaset_test.py
----------------------------------------------------------------------
diff --git a/sdks/python/apache_beam/examples/complete/juliaset/juliaset/juliaset_test.py b/sdks/python/apache_beam/examples/complete/juliaset/juliaset/juliaset_test.py
index c254eb4..c13e857 100644
--- a/sdks/python/apache_beam/examples/complete/juliaset/juliaset/juliaset_test.py
+++ b/sdks/python/apache_beam/examples/complete/juliaset/juliaset/juliaset_test.py
@@ -52,7 +52,7 @@ class JuliaSetTest(unittest.TestCase):
if image_file_name is not None:
args.append('--image_output=%s' % image_file_name)
- juliaset.run(args).wait_until_finish()
+ juliaset.run(args)
def test_output_file_format(self):
grid_size = 5
http://git-wip-us.apache.org/repos/asf/beam/blob/2fadeb82/sdks/python/apache_beam/examples/cookbook/bigquery_tornadoes.py
----------------------------------------------------------------------
diff --git a/sdks/python/apache_beam/examples/cookbook/bigquery_tornadoes.py b/sdks/python/apache_beam/examples/cookbook/bigquery_tornadoes.py
index 6d79216..1eade9d 100644
--- a/sdks/python/apache_beam/examples/cookbook/bigquery_tornadoes.py
+++ b/sdks/python/apache_beam/examples/cookbook/bigquery_tornadoes.py
@@ -90,7 +90,7 @@ def run(argv=None):
write_disposition=beam.io.BigQueryDisposition.WRITE_TRUNCATE))
# Run the pipeline (all operations are deferred until run() is called).
- p.run()
+ p.run().wait_until_finish()
if __name__ == '__main__':
[2/2] beam git commit: This closes #2010
Posted by al...@apache.org.
This closes #2010
Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/e720a7c4
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/e720a7c4
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/e720a7c4
Branch: refs/heads/master
Commit: e720a7c43b12347d738c24baa9010d5b877625fd
Parents: db19c7d 2fadeb8
Author: Ahmet Altay <al...@google.com>
Authored: Tue Feb 14 23:48:44 2017 -0800
Committer: Ahmet Altay <al...@google.com>
Committed: Tue Feb 14 23:48:44 2017 -0800
----------------------------------------------------------------------
.../apache_beam/examples/complete/juliaset/juliaset/juliaset.py | 2 +-
.../examples/complete/juliaset/juliaset/juliaset_test.py | 2 +-
sdks/python/apache_beam/examples/cookbook/bigquery_tornadoes.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------