paul1u5 opened a new issue, #39340:
URL: https://github.com/apache/beam/issues/39340

   ### What happened?
   
   Versions:
   
   * apache-beam from 2.72 to 2.75.0
   * google-cloud-build 3.37.0
   
   Description:
   
   Running a Dataflow job with `--prebuild_sdk_container_engine cloud_build` 
and `--cloud_build_machine_type` fails with:
   
   ```
   AttributeError: Unknown field for BuildOptions: machineType
     File ".../sdk_container_builder.py", line 246, in 
_invoke_docker_build_and_push
       build.options.machineType = self._cloud_build_machine_type
   ```
   
   Fix:
   
   In 
[sdk_container_builder.py](https://github.com/apache/beam/blob/v2.75.0/sdks/python/apache_beam/runners/portability/sdk_container_builder.py#L246)
 line 246, change:
   
   `build.options.machineType = self._cloud_build_machine_type`
   to
   `build.options.machine_type = self._cloud_build_machine_type`
   
   ### Issue Priority
   
   Priority: 1 (data loss / total loss of function)
   
   ### Issue Components
   
   - [x] Component: Python SDK
   - [ ] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam YAML
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Infrastructure
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Prism Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to