---
title: Common pipeline maintenance tasks
description: Learn how to perform ongoing operations for managed ingestion connectors.
canonical_url: https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/pipeline-maintenance
---

# Common pipeline maintenance tasks

Learn how to perform ongoing operations for managed ingestion pipelines.

## Restart the ingestion pipeline

**Applies to**: ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) SaaS connectors ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) Database connectors ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) Query-based connectors

Restart the ingestion pipeline when a pipeline run fails unexpectedly or hangs. This can fix transient failures such as temporary network issues, source database timeouts, or configuration errors that have been corrected.

| Interface      | Instructions                                                                                                                                            |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Lakehouse UI   | [Manually trigger a pipeline update](https://docs.databricks.com/aws/en/ldp/updates.md#trigger-manual)                                                  |
| Pipelines API  | [POST /api/2.0/pipelines/`{pipeline_id}`/updates](https://docs.databricks.com/api/workspace/pipelines/startupdate)                                      |
| Databricks CLI | [databricks pipelines start-update](https://docs.databricks.com/aws/en/dev-tools/cli/reference/pipelines-commands.md#databricks-pipelines-start-update) |

## Restart the ingestion gateway

**Applies to**: ![Red X icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/x-red.svg) SaaS connectors ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) Database connectors

To decrease the load on the source database, the ingestion gateway only checks for new tables periodically. It might take up to six hours to discover new tables. To speed up this process, restart the gateway.

| Interface      | Instructions                                                                                                                                            |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Lakehouse UI   | [Manually trigger a pipeline update](https://docs.databricks.com/aws/en/ldp/updates.md#trigger-manual)                                                  |
| Pipelines API  | [POST /api/2.0/pipelines/`{pipeline_id}`/updates](https://docs.databricks.com/api/workspace/pipelines/startupdate)                                      |
| Databricks CLI | [databricks pipelines start-update](https://docs.databricks.com/aws/en/dev-tools/cli/reference/pipelines-commands.md#databricks-pipelines-start-update) |

## Run a full refresh to reingest data

**Applies to**: ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) SaaS connectors ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) Database connectors ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) Query-based connectors

A full refresh clears existing data and reingests all records. Fully refresh target tables when data is inconsistent, incomplete, or needs to be reprocessed from the source.

For more information about full refresh behavior, see [Fully refresh target tables](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/full-refresh.md).

| Interface      | Instructions                                                                                                                                            |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Lakehouse UI   | [Manually trigger a pipeline update](https://docs.databricks.com/aws/en/ldp/updates.md#trigger-manual)                                                  |
| Pipelines API  | [POST /api/2.0/pipelines/`{pipeline_id}`/updates](https://docs.databricks.com/api/workspace/pipelines/startupdate)                                      |
| Databricks CLI | [databricks pipelines start-update](https://docs.databricks.com/aws/en/dev-tools/cli/reference/pipelines-commands.md#databricks-pipelines-start-update) |

## <a id="schedule" />Update the pipeline schedule

**Applies to**: ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) SaaS connectors ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) Database connectors ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) Query-based connectors

Adjust how frequently data is ingested from the source to balance data freshness requirements with source system load.

| Interface      | Instructions                                                                                                                 |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| Lakehouse UI   | [Schedule a pipeline with the pipeline UI](https://docs.databricks.com/aws/en/jobs/tasks/pipeline.md#pipeline-schedule)      |
| Jobs API       | [POST /api/2.2/jobs/update](https://docs.databricks.com/api/workspace/jobs/update)                                           |
| Databricks CLI | [databricks jobs update](https://docs.databricks.com/aws/en/dev-tools/cli/reference/jobs-commands.md#databricks-jobs-update) |

## <a id="alerts" />Set up alerts and notifications

**Applies to**: ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) SaaS connectors ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) Database connectors ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) Query-based connectors

Lakeflow Connect automatically sets up notifications for ingestion pipelines and scheduling jobs so that you can track pipeline health and receive timely alerts about failures. You can customize notifications if needed.

| Interface      | Instructions                                                                                                                                |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| Lakehouse UI   | [Add email notifications for pipeline events](https://docs.databricks.com/aws/en/ldp/monitoring-ui.md#notifications)                        |
| Pipelines API  | [PUT /api/2.0/pipelines/`{pipeline_id}`](https://docs.databricks.com/api/workspace/pipelines/update)                                        |
| Databricks CLI | [databricks pipelines update](https://docs.databricks.com/aws/en/dev-tools/cli/reference/pipelines-commands.md#databricks-pipelines-update) |

## Remove unused staging files

**Applies to**: ![Red X icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/x-red.svg) SaaS connectors ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) Database connectors

For ingestion pipelines created after January 6, 2025, Databricks automatically schedules volume staging data for deletion after 25 days and physically removes it after 30 days. An ingestion pipeline that has not completed successfully for 25 days or longer might result in data gaps in the destination tables. To avoid gaps, you must trigger a full refresh of the target tables.

For ingestion pipelines created before January 6, 2025, contact Databricks Support to request manual enablement of automatic retention management for staging CDC data.

The following data is automatically cleaned up:

* CDC data files
* Snapshot files
* Staging table data

## Specify tables to ingest

**Applies to**: ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) SaaS connectors ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) Database connectors ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) Query-based connectors

The Pipelines API provides two methods to specify tables to ingest in the `objects` field of the `ingestion_definition:`

* Table specification: Ingests an individual table from the specified source catalog and schema to the specified destination catalog and schema.
* Schema specification: Ingests all tables from the specified source catalog and schema into the specified catalog and schema.

If you choose to ingest an entire schema, review the limitations on the number of tables per pipeline for your connector.

| Interface      | Instructions                                                                                                                                |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| Pipelines API  | [PUT /api/2.0/pipelines/`{pipeline_id}`](https://docs.databricks.com/api/workspace/pipelines/update)                                        |
| Databricks CLI | [databricks pipelines update](https://docs.databricks.com/aws/en/dev-tools/cli/reference/pipelines-commands.md#databricks-pipelines-update) |

## Verify successful data ingestion

**Applies to**: ![Red X icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/x-red.svg) SaaS connectors ![Green check icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/check-green.svg) Database connectors

The list view on the pipeline details page shows the number of records processed as data is ingested. These numbers refresh automatically.

![Verify replication](https://docs.databricks.com/aws/en/images/lakeflow-connect/verify-ingestion.png)

The `Upserted records` and `Deleted records` columns are not shown by default. You can enable them by clicking on the columns configuration ![Columns configuration icon](https://docs.databricks.com/aws/en/images/lakeflow-connect/columns-configuration-icon.png) button and selecting them.
