beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yi...@apache.org
Subject [beam] branch master updated: Minor fix to prebuilding sdk workflow timeout setting
Date Tue, 01 Jun 2021 16:14:17 GMT
This is an automated email from the ASF dual-hosted git repository.

yichi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 50e6249  Minor fix to prebuilding sdk workflow timeout setting
     new b39ff90  Merge pull request #14899 from y1chi/prebuild_timeout
50e6249 is described below

commit 50e6249bc9053fcd41a94a89abfe6c04dd9fd394
Author: Yichi Zhang <zyichi@google.com>
AuthorDate: Thu May 27 17:06:32 2021 -0700

    Minor fix to prebuilding sdk workflow timeout setting
---
 sdks/python/apache_beam/runners/portability/sdk_container_builder.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sdks/python/apache_beam/runners/portability/sdk_container_builder.py b/sdks/python/apache_beam/runners/portability/sdk_container_builder.py
index d712544..d1c6247 100644
--- a/sdks/python/apache_beam/runners/portability/sdk_container_builder.py
+++ b/sdks/python/apache_beam/runners/portability/sdk_container_builder.py
@@ -36,7 +36,6 @@ import time
 import uuid
 from typing import Type
 
-from google.protobuf.duration_pb2 import Duration
 from google.protobuf.json_format import MessageToJson
 
 from apache_beam import version as beam_version
@@ -259,7 +258,7 @@ class _SdkContainerImageCloudBuilder(SdkContainerImageBuilder):
     source.storageSource.object = gcs_object
     build.source = source
     # TODO(zyichi): make timeout configurable
-    build.timeout = Duration().FromSeconds(seconds=7200)
+    build.timeout = '7200s'
 
     now = time.time()
     # operation = client.create_build(project_id=project_id, build=build)

Mime
View raw message