You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
preview_PipelineJob.run() (google/cloud/aiplatform/preview/pipelinejob/pipeline_jobs.py) always fails with a TypeError before any request is sent:
TypeError: _PipelineJob.submit() got an unexpected keyword argument 'enable_preflight_validations'
The preview class does not override run(), so it uses the GA PipelineJob.run(), which calls self.submit(..., enable_preflight_validations=enable_preflight_validations). The preview submit() has no enable_preflight_validations parameter, so the call fails whatever value is passed. With sync=False the same error happens in the background thread and wait() raises RuntimeError: _PipelineJob resource has not been created. Resource failed with: _PipelineJob.submit() got an unexpected keyword argument 'enable_preflight_validations'.
TypeError: _PipelineJob.submit() got an unexpected keyword argument 'enable_preflight_validations'
The preview __init__ already accepts enable_preflight_validations, and the v1beta1 PipelineJob has a preflight_validations field, so the fix is to accept the keyword in the preview submit() and set the field when it is True, the same way the GA submit() does.
Activity