Configure failure policy

You can use thefailure_policy parameter of theaiplatform.PipelineJob class to configure whether a pipeline should fail immediately if one of the task fails.

The following failure policy configurations are supported in Vertex AI Pipelines:

Use the following code sample to configure the failure policy for a pipeline using the Vertex AI SDK for Python:

job=aiplatform.PipelineJob(display_name='DISPLAY_NAME',template_path='COMPILED_PIPELINE_PATH',pipeline_root='PIPELINE_ROOT',project='PROJECT_ID',location='LOCATION',failure_policy='FAILURE_POLICY')

Replace the following:

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-15 UTC.