# Limits

These are the default limits. Some organizations have different ones: new organizations without a credit limit start with tighter limits, and support can raise them for an organization. Your own limits are shown where they apply, for example in the timeout field of the build settings.

## Builds

| Limit | Value | When it is reached |
|---|---|---|
| Builds running at once, per organization | 2 (1 for new organizations without a credit limit) | The next builds wait in the queue. |
| Builds waiting, per organization | 20 | A new build is refused. |
| Builds per service | 1 running and 1 waiting | A newer push replaces the waiting one, shown as **Replaced by a newer build**. A running build is never cancelled by a newer push. |
| Time in the queue | 6 hours | The build expires: **Expired in the queue**. |
| Build time limit | 20 minutes by default, 5 to 60 (up to 30 for new organizations without a credit limit) | The build stops with [`timeout`](/git-builds/troubleshooting#timeout). |
| Builder size | Small, medium and large. New organizations without a credit limit: up to medium | The build is refused with [`builder_size_above_pool_max`](/git-builds/troubleshooting#builder_size_above_pool_max) or [`builder_size_exceeds_pool_slots`](/git-builds/troubleshooting#builder_size_exceeds_pool_slots) when a region does not offer it. |

If the builders are busy, a build waits and the build page says why: your organization is at its limit, every builder is busy, or the spend cap has no room until a running build finishes. Waiting is fair between organizations: one organization at its limit never blocks the others.

## Repository and image

| Limit | Value | When it is reached |
|---|---|---|
| Repository, when cloned | 2 GiB | [`repo_too_large`](/git-builds/troubleshooting#repo_too_large). Set a root directory, remove large files or use Git LFS. |
| Git LFS files | 1 GiB | The same. |
| Image size (compressed) | 10 GiB | [`image_too_large`](/git-builds/troubleshooting#image_too_large). Use a multi-stage build. |

## Caches and storage

| Limit | Value |
|---|---|
| Build layer cache | 5 GiB per service |
| Dependency cache | 3 GiB each, 5 GiB per service. Not used for 14 days: removed. Oldest first when full |
| Builder storage (images and cache) | 20 GiB per service. Over it: [`builder_storage_full`](/git-builds/troubleshooting#builder_storage_full) |
| Images kept | Live deployments, the previous deployment, the 10 latest successful builds and everything from the last 7 days. See [Rollbacks](/git-builds/rollbacks#how-long-old-images-are-kept) |

## Logs and history

| Limit | Value |
|---|---|
| Build log size | 50,000 lines or 20 MiB. Past it the log is cut, with a marker |
| Build logs are kept | 30 days |
| Build history is kept | 13 months |

## Secrets, hooks and triggers

| Limit | Value |
|---|---|
| Build secrets | 50 per service, 64 KiB each. Names of up to 64 characters |
| Deploy hooks | 3 per service, 30 calls a minute each |
| Check for new commits (plain git) | Every 3 minutes by default. A repository with a very large number of tags is checked less often |
| Wait for the build API call | Up to 10 minutes per call. Call it again to keep waiting |
| Pre-deploy command | 10 minutes by default, up to 30 |
| Health check wait | 5 minutes by default |

## Minutes

Build minutes, builder sizes, extra minutes and the spend cap are explained in [Build minutes](/git-builds/billing). The part of your limit that is about money lives in **Settings > Builds**: see [Build settings](/git-builds/build-settings#extra-build-minutes).

## Ask for more

If you hit a limit that your work needs, contact support and say which one and why. Limits that protect the builders, such as the build time, are raised for an organization after a look, not by default.
