> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# SUSPEND or RESUME PIPE

> Suspends or resumes a pipe to pause or continue its in-progress data loading jobs.

Suspends or resumes a pipe:

* When a load job is in progress (namely, in the `RUNNING` state), suspending (`SUSPEND`) the pipe for the job interrupts the job.
* When a load job encounters errors, resuming (`RESUME`) the pipe for the job will continue to run the erroneous job.

This command is supported from v3.2 onwards.

## Syntax

```SQL theme={null}
ALTER PIPE <pipe_name> { SUSPEND | RESUME [ IF SUSPENDED ] }
```

## Parameters

### pipe\_name

The name of the pipe.

## Examples

### Suspend a pipe

Suspend the pipe named `user_behavior_replica` (which is in the `RUNNING` state) in the database named `mydatabase`:

```SQL theme={null}
USE mydatabase;
ALTER PIPE user_behavior_replica SUSPEND;
```

If you use [SHOW PIPES](/documents/4.2/sql-reference/sql-statements/loading_unloading/pipe/SHOW_PIPES.md) to query the pipe, you can see that its state has changed to `SUSPEND`.

### Resume a pipe

Resume the pipe named `user_behavior_replica` in the database named `mydatabase`:

```SQL theme={null}
USE mydatabase;
ALTER PIPE user_behavior_replica RESUME;
```

If you use [SHOW PIPES](/documents/4.2/sql-reference/sql-statements/loading_unloading/pipe/SHOW_PIPES.md) to query the pipe, you can see that its state has changed to `RUNNING`.

## References

* [CREATE PIPE](/documents/4.2/sql-reference/sql-statements/loading_unloading/pipe/CREATE_PIPE.md)
* [ALTER PIPE](/documents/4.2/sql-reference/sql-statements/loading_unloading/pipe/ALTER_PIPE.md)
* [DROP PIPE](/documents/4.2/sql-reference/sql-statements/loading_unloading/pipe/DROP_PIPE.md)
* [SHOW PIPES](/documents/4.2/sql-reference/sql-statements/loading_unloading/pipe/SHOW_PIPES.md)
* [RETRY FILE](/documents/4.2/sql-reference/sql-statements/loading_unloading/pipe/RETRY_FILE.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.